From 5fa21eb6a36af1a8ccc5d66ce058ec68d542c78a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Thu, 9 May 2019 18:14:34 +0200 Subject: [PATCH] Use symlinks --- .../framework-bundle/4.3/config/bootstrap.php | 22 +-------- .../4.3/config/packages/cache.yaml | 2 +- .../4.3/config/packages/framework.yaml | 1 - .../4.3/config/packages/test/framework.yaml | 5 +- .../framework-bundle/4.3/config/services.yaml | 28 +---------- symfony/framework-bundle/4.3/manifest.json | 29 +---------- symfony/framework-bundle/4.3/post-install.txt | 12 +---- symfony/framework-bundle/4.3/public | 1 + symfony/framework-bundle/4.3/public/index.php | 27 ----------- symfony/framework-bundle/4.3/src | 1 + .../4.3/src/Controller/.gitignore | 0 symfony/framework-bundle/4.3/src/Kernel.php | 48 ------------------- 12 files changed, 8 insertions(+), 168 deletions(-) mode change 100644 => 120000 symfony/framework-bundle/4.3/config/bootstrap.php mode change 100644 => 120000 symfony/framework-bundle/4.3/config/packages/test/framework.yaml mode change 100644 => 120000 symfony/framework-bundle/4.3/config/services.yaml mode change 100644 => 120000 symfony/framework-bundle/4.3/manifest.json mode change 100644 => 120000 symfony/framework-bundle/4.3/post-install.txt create mode 120000 symfony/framework-bundle/4.3/public delete mode 100644 symfony/framework-bundle/4.3/public/index.php create mode 120000 symfony/framework-bundle/4.3/src delete mode 100644 symfony/framework-bundle/4.3/src/Controller/.gitignore delete mode 100644 symfony/framework-bundle/4.3/src/Kernel.php diff --git a/symfony/framework-bundle/4.3/config/bootstrap.php b/symfony/framework-bundle/4.3/config/bootstrap.php deleted file mode 100644 index f6afb404..00000000 --- a/symfony/framework-bundle/4.3/config/bootstrap.php +++ /dev/null @@ -1,21 +0,0 @@ -=1.2) -if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) { - $_SERVER += $env; - $_ENV += $env; -} elseif (!class_exists(Dotenv::class)) { - throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); -} else { - // load all the .env files - (new Dotenv())->loadEnv(dirname(__DIR__).'/.env'); -} - -$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev'; -$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV']; -$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0'; diff --git a/symfony/framework-bundle/4.3/config/bootstrap.php b/symfony/framework-bundle/4.3/config/bootstrap.php new file mode 120000 index 00000000..a1c12047 --- /dev/null +++ b/symfony/framework-bundle/4.3/config/bootstrap.php @@ -0,0 +1 @@ +../../4.2/config/bootstrap.php \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/config/packages/cache.yaml b/symfony/framework-bundle/4.3/config/packages/cache.yaml index a8816e95..de9cc8c0 120000 --- a/symfony/framework-bundle/4.3/config/packages/cache.yaml +++ b/symfony/framework-bundle/4.3/config/packages/cache.yaml @@ -1 +1 @@ -../../../3.3/config/packages/cache.yaml \ No newline at end of file +../../../4.2/config/packages/cache.yaml \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/config/packages/framework.yaml b/symfony/framework-bundle/4.3/config/packages/framework.yaml index 9c83ac82..fa02e246 100644 --- a/symfony/framework-bundle/4.3/config/packages/framework.yaml +++ b/symfony/framework-bundle/4.3/config/packages/framework.yaml @@ -21,4 +21,3 @@ framework: # For instance, basic validation constraints will be inferred from Doctrine's metadata. auto_mapping: App\Entity\: [] - diff --git a/symfony/framework-bundle/4.3/config/packages/test/framework.yaml b/symfony/framework-bundle/4.3/config/packages/test/framework.yaml deleted file mode 100644 index d051c840..00000000 --- a/symfony/framework-bundle/4.3/config/packages/test/framework.yaml +++ /dev/null @@ -1,4 +0,0 @@ -framework: - test: true - session: - storage_id: session.storage.mock_file diff --git a/symfony/framework-bundle/4.3/config/packages/test/framework.yaml b/symfony/framework-bundle/4.3/config/packages/test/framework.yaml new file mode 120000 index 00000000..e877c26e --- /dev/null +++ b/symfony/framework-bundle/4.3/config/packages/test/framework.yaml @@ -0,0 +1 @@ +../../../../4.2/config/packages/test/framework.yaml \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/config/services.yaml b/symfony/framework-bundle/4.3/config/services.yaml deleted file mode 100644 index 5c4b4175..00000000 --- a/symfony/framework-bundle/4.3/config/services.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# This file is the entry point to configure your own services. -# Files in the packages/ subdirectory configure your dependencies. - -# Put parameters here that don't need to change on each machine where the app is deployed -# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration -parameters: - -services: - # default configuration for services in *this* file - _defaults: - autowire: true # Automatically injects dependencies in your services. - autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. - - # makes classes in src/ available to be used as services - # this creates a service per class whose id is the fully-qualified class name - App\: - resource: '../src/*' - exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}' - - # controllers are imported separately to make sure services can be injected - # as action arguments even if you don't extend any base controller class - App\Controller\: - resource: '../src/Controller' - tags: ['controller.service_arguments'] - - # add more service definitions when explicit configuration is needed - # please note that last definitions always *replace* previous ones diff --git a/symfony/framework-bundle/4.3/config/services.yaml b/symfony/framework-bundle/4.3/config/services.yaml new file mode 120000 index 00000000..be69bb02 --- /dev/null +++ b/symfony/framework-bundle/4.3/config/services.yaml @@ -0,0 +1 @@ +../../4.2/config/services.yaml \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/manifest.json b/symfony/framework-bundle/4.3/manifest.json deleted file mode 100644 index ea46c0b0..00000000 --- a/symfony/framework-bundle/4.3/manifest.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "bundles": { - "Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"] - }, - "copy-from-recipe": { - "config/": "%CONFIG_DIR%/", - "public/": "%PUBLIC_DIR%/", - "src/": "%SRC_DIR%/" - }, - "composer-scripts": { - "cache:clear": "symfony-cmd", - "assets:install %PUBLIC_DIR%": "symfony-cmd" - }, - "env": { - "APP_ENV": "dev", - "APP_SECRET": "%generate(secret)%", - "#TRUSTED_PROXIES": "127.0.0.1,127.0.0.2", - "#TRUSTED_HOSTS": "'^localhost|example\\.com$'" - }, - "gitignore": [ - "/.env.local", - "/.env.local.php", - "/.env.*.local", - "/%PUBLIC_DIR%/bundles/", - "/%VAR_DIR%/", - "/vendor/" - ] -} diff --git a/symfony/framework-bundle/4.3/manifest.json b/symfony/framework-bundle/4.3/manifest.json new file mode 120000 index 00000000..5fe6af0e --- /dev/null +++ b/symfony/framework-bundle/4.3/manifest.json @@ -0,0 +1 @@ +../4.2/manifest.json \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/post-install.txt b/symfony/framework-bundle/4.3/post-install.txt deleted file mode 100644 index e1bfdb05..00000000 --- a/symfony/framework-bundle/4.3/post-install.txt +++ /dev/null @@ -1,11 +0,0 @@ - - What's next? - - - * Run your application: - 1. Change to the project directory - 2. Create your code repository with the git init command - 3. Run composer require server --dev to install the development web server, - or configure another supported web server https://symfony.com/doc/current/setup/web_server_configuration.html - - * Read the documentation at https://symfony.com/doc diff --git a/symfony/framework-bundle/4.3/post-install.txt b/symfony/framework-bundle/4.3/post-install.txt new file mode 120000 index 00000000..943d1280 --- /dev/null +++ b/symfony/framework-bundle/4.3/post-install.txt @@ -0,0 +1 @@ +../4.2/post-install.txt \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/public b/symfony/framework-bundle/4.3/public new file mode 120000 index 00000000..361dbf4f --- /dev/null +++ b/symfony/framework-bundle/4.3/public @@ -0,0 +1 @@ +../4.2/public \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/public/index.php b/symfony/framework-bundle/4.3/public/index.php deleted file mode 100644 index e30f90c0..00000000 --- a/symfony/framework-bundle/4.3/public/index.php +++ /dev/null @@ -1,27 +0,0 @@ -handle($request); -$response->send(); -$kernel->terminate($request, $response); diff --git a/symfony/framework-bundle/4.3/src b/symfony/framework-bundle/4.3/src new file mode 120000 index 00000000..f8dd8c26 --- /dev/null +++ b/symfony/framework-bundle/4.3/src @@ -0,0 +1 @@ +../4.2/src \ No newline at end of file diff --git a/symfony/framework-bundle/4.3/src/Controller/.gitignore b/symfony/framework-bundle/4.3/src/Controller/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/symfony/framework-bundle/4.3/src/Kernel.php b/symfony/framework-bundle/4.3/src/Kernel.php deleted file mode 100644 index 58086ddf..00000000 --- a/symfony/framework-bundle/4.3/src/Kernel.php +++ /dev/null @@ -1,48 +0,0 @@ -getProjectDir().'/config/bundles.php'; - foreach ($contents as $class => $envs) { - if ($envs[$this->environment] ?? $envs['all'] ?? false) { - yield new $class(); - } - } - } - - protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void - { - $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); - $container->setParameter('container.dumper.inline_class_loader', true); - $confDir = $this->getProjectDir().'/config'; - - $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); - $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); - $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); - $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); - } - - protected function configureRoutes(RouteCollectionBuilder $routes): void - { - $confDir = $this->getProjectDir().'/config'; - - $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); - $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); - $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); - } -}