Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns a parent directory's path
<?php dirname(string $path, int $levels = 1): string
<?php         ][$choice];



        $fs = new Filesystem;

        $rootPath = dirname(__DIR__, 3) . "/template/$templateDirectory";



        $io->writeln('Creating index.php');

        $fs->copy("$rootPath/index.php", 'index.php');
<?php         $io = new SymfonyStyle($input, $output);

        $region = $input->getArgument('region');



        $layersJson = file_get_contents(dirname(__DIR__, 3) . '/layers.json');

        $layers = json_decode($layersJson, true, 512, JSON_THROW_ON_ERROR);

        $io->title("Layers for the $region region");
<?php             $this->killExistingFpm();

        }



        if (! is_dir(dirname(self::SOCKET))) {

            mkdir(dirname(self::SOCKET));

        }
<?php         }



        if (! is_dir(dirname(self::SOCKET))) {

            mkdir(dirname(self::SOCKET));

        }