Newscoop\NewscoopBundle\Controller\PluginsController::createFolderStructure PHP Method

createFolderStructure() private method

private createFolderStructure ( $pluginService )
    private function createFolderStructure($pluginService)
    {
        $filesystem = new Filesystem();
        $privatePluginsPath = $pluginService->getPluginsDir() . self::PRIVATE_PLUGINS_DIR;
        $privatePluginsCachePath = $pluginService->getPluginsDir() . self::PRIVATE_PLUGINS_CACHE_DIR;
        if (!$filesystem->exists($privatePluginsPath)) {
            $filesystem->mkdir($privatePluginsPath);
        }
        if (!$filesystem->exists($privatePluginsCachePath)) {
            $filesystem->mkdir($privatePluginsCachePath);
        }
    }