Contao\CoreBundle\Command\SymlinksCommand::generateSymlinks PHP Метод

    private function generateSymlinks()
    {
        $fs = new Filesystem();
        $uploadPath = $this->getContainer()->getParameter('contao.upload_path');
        // Remove the base folders in the document root
        $fs->remove($this->rootDir . '/' . $this->webDir . '/' . $uploadPath);
        $fs->remove($this->rootDir . '/' . $this->webDir . '/system/modules');
        $fs->remove($this->rootDir . '/' . $this->webDir . '/vendor');
        $this->symlinkFiles($uploadPath);
        $this->symlinkModules();
        $this->symlinkThemes();
        // Symlink the assets and themes directory
        $this->symlink('assets', $this->webDir . '/assets');
        $this->symlink('system/themes', $this->webDir . '/system/themes');
        // Symlinks the logs directory
        $this->symlink(str_replace($this->rootDir . '/', '', $this->getContainer()->getParameter('kernel.logs_dir')), 'system/logs');
    }