Contao\CoreBundle\Command\SymlinksCommand::symlinkThemes PHP Method

symlinkThemes() private method

Creates the theme symlinks.
private symlinkThemes ( )
    private function symlinkThemes()
    {
        /** @var SplFileInfo[] $themes */
        $themes = $this->getContainer()->get('contao.resource_finder')->findIn('themes')->depth(0)->directories();
        foreach ($themes as $theme) {
            $path = str_replace(strtr($this->rootDir, '\\', '/') . '/', '', strtr($theme->getPathname(), '\\', '/'));
            if (0 === strpos($path, 'system/modules/')) {
                continue;
            }
            $this->symlink($path, 'system/themes/' . basename($path));
        }
    }