protected function saveSlotDefinition($dir, array $slot)
    {
        $slotsFilename = $this->getSlotDefinitionFile($dir);

        FilesystemTools::writeFile($slotsFilename, json_encode($slot), $this->filesystem);
    }