From d76824e010849a973cfe995553e61005a3ee93ea Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 20 Jan 2017 14:41:01 -0800 Subject: [PATCH] added initial set of recipes --- .../etc/packages/doctrine.yaml | 22 ++++++++++++ .../etc/packages/prod/doctrine.yaml | 5 +++ .../doctrine/doctrine-bundle/manifest.json | 16 +++++++++ .../doctrine-bundle/src/Entity/.gitkeep | 0 .../etc/packages/dunglas_action.yaml | 3 ++ recipes/dunglas/action-bundle/manifest.json | 8 +++++ .../etc/packages/dev/easy-log-handler.yaml | 17 +++++++++ .../easycorp/easy-log-handler/manifest.json | 5 +++ .../etc/packages/easy_admin.yaml | 6 ++++ .../etc/routing/easy_admin.yaml | 4 +++ .../easyadmin-bundle/manifest.json | 8 +++++ .../etc/packages/framework_extra.yaml | 2 ++ .../framework-extra-bundle/manifest.json | 8 +++++ .../etc/packages/dev/security-checker.yaml | 10 ++++++ .../sensiolabs/security-checker/manifest.json | 8 +++++ recipes/symfony/console/bin/console | 36 +++++++++++++++++++ recipes/symfony/console/manifest.json | 5 +++ recipes/symfony/debug-bundle/manifest.json | 5 +++ .../etc/packages/dev/framework.yaml | 3 ++ .../etc/packages/framework.yaml | 20 +++++++++++ .../etc/packages/test/framework.yaml | 4 +++ .../symfony/framework-bundle/manifest.json | 13 +++++++ .../etc/packages/dev/monolog.php | 35 ++++++++++++++++++ .../etc/packages/prod/monolog.php | 29 +++++++++++++++ recipes/symfony/monolog-bundle/manifest.json | 8 +++++ .../requirements-checker/manifest.json | 9 +++++ .../etc/packages/security.yaml | 18 ++++++++++ recipes/symfony/security-bundle/manifest.json | 8 +++++ .../etc/packages/dev/swiftmailer.yaml | 2 ++ .../etc/packages/swiftmailer.yaml | 6 ++++ .../etc/packages/test/swiftmailer.yaml | 2 ++ .../symfony/swiftmailer-bundle/manifest.json | 13 +++++++ .../twig-bundle/etc/packages/twig.yaml | 4 +++ recipes/symfony/twig-bundle/manifest.json | 8 +++++ .../etc/packages/dev/web_profiler.yaml | 6 ++++ .../etc/packages/test/web_profiler.yaml | 6 ++++ .../etc/routing/dev/web_profiler.yaml | 7 ++++ .../symfony/web-profiler-bundle/manifest.json | 8 +++++ .../symfony/web-server-bundle/manifest.json | 5 +++ 39 files changed, 382 insertions(+) create mode 100644 recipes/doctrine/doctrine-bundle/etc/packages/doctrine.yaml create mode 100644 recipes/doctrine/doctrine-bundle/etc/packages/prod/doctrine.yaml create mode 100644 recipes/doctrine/doctrine-bundle/manifest.json create mode 100644 recipes/doctrine/doctrine-bundle/src/Entity/.gitkeep create mode 100644 recipes/dunglas/action-bundle/etc/packages/dunglas_action.yaml create mode 100644 recipes/dunglas/action-bundle/manifest.json create mode 100644 recipes/easycorp/easy-log-handler/etc/packages/dev/easy-log-handler.yaml create mode 100644 recipes/easycorp/easy-log-handler/manifest.json create mode 100644 recipes/javiereguiluz/easyadmin-bundle/etc/packages/easy_admin.yaml create mode 100644 recipes/javiereguiluz/easyadmin-bundle/etc/routing/easy_admin.yaml create mode 100644 recipes/javiereguiluz/easyadmin-bundle/manifest.json create mode 100644 recipes/sensio/framework-extra-bundle/etc/packages/framework_extra.yaml create mode 100644 recipes/sensio/framework-extra-bundle/manifest.json create mode 100644 recipes/sensiolabs/security-checker/etc/packages/dev/security-checker.yaml create mode 100644 recipes/sensiolabs/security-checker/manifest.json create mode 100755 recipes/symfony/console/bin/console create mode 100644 recipes/symfony/console/manifest.json create mode 100644 recipes/symfony/debug-bundle/manifest.json create mode 100644 recipes/symfony/framework-bundle/etc/packages/dev/framework.yaml create mode 100644 recipes/symfony/framework-bundle/etc/packages/framework.yaml create mode 100644 recipes/symfony/framework-bundle/etc/packages/test/framework.yaml create mode 100644 recipes/symfony/framework-bundle/manifest.json create mode 100644 recipes/symfony/monolog-bundle/etc/packages/dev/monolog.php create mode 100644 recipes/symfony/monolog-bundle/etc/packages/prod/monolog.php create mode 100644 recipes/symfony/monolog-bundle/manifest.json create mode 100644 recipes/symfony/requirements-checker/manifest.json create mode 100644 recipes/symfony/security-bundle/etc/packages/security.yaml create mode 100644 recipes/symfony/security-bundle/manifest.json create mode 100644 recipes/symfony/swiftmailer-bundle/etc/packages/dev/swiftmailer.yaml create mode 100644 recipes/symfony/swiftmailer-bundle/etc/packages/swiftmailer.yaml create mode 100644 recipes/symfony/swiftmailer-bundle/etc/packages/test/swiftmailer.yaml create mode 100644 recipes/symfony/swiftmailer-bundle/manifest.json create mode 100644 recipes/symfony/twig-bundle/etc/packages/twig.yaml create mode 100644 recipes/symfony/twig-bundle/manifest.json create mode 100644 recipes/symfony/web-profiler-bundle/etc/packages/dev/web_profiler.yaml create mode 100644 recipes/symfony/web-profiler-bundle/etc/packages/test/web_profiler.yaml create mode 100644 recipes/symfony/web-profiler-bundle/etc/routing/dev/web_profiler.yaml create mode 100644 recipes/symfony/web-profiler-bundle/manifest.json create mode 100644 recipes/symfony/web-server-bundle/manifest.json diff --git a/recipes/doctrine/doctrine-bundle/etc/packages/doctrine.yaml b/recipes/doctrine/doctrine-bundle/etc/packages/doctrine.yaml new file mode 100644 index 00000000..ccaffc82 --- /dev/null +++ b/recipes/doctrine/doctrine-bundle/etc/packages/doctrine.yaml @@ -0,0 +1,22 @@ +doctrine: + dbal: + driver: pdo_mysql + host: "%env(DB_HOST)%" + port: "%env(DB_PORT)%" + dbname: "%env(DB_NAME)%" + user: "%env(DB_USER)%" + password: "%env(DB_PASSWORD)%" + charset: UTF8 + # if using pdo_sqlite as your database driver, uncomment next line: + # path: "%kernel.root_dir%/../var/data.db" + orm: + auto_generate_proxy_classes: "%kernel.debug%" + naming_strategy: doctrine.orm.naming_strategy.underscore + auto_mapping: true + mappings: + App: + is_bundle: false + type: annotation + dir: "%kernel.root_dir%/../src/Entity" + prefix: "Entity\\" + alias: App diff --git a/recipes/doctrine/doctrine-bundle/etc/packages/prod/doctrine.yaml b/recipes/doctrine/doctrine-bundle/etc/packages/prod/doctrine.yaml new file mode 100644 index 00000000..a5d3d380 --- /dev/null +++ b/recipes/doctrine/doctrine-bundle/etc/packages/prod/doctrine.yaml @@ -0,0 +1,5 @@ +doctrine: + orm: + #metadata_cache_driver: apc + #result_cache_driver: apc + #query_cache_driver: apc diff --git a/recipes/doctrine/doctrine-bundle/manifest.json b/recipes/doctrine/doctrine-bundle/manifest.json new file mode 100644 index 00000000..df13f9b9 --- /dev/null +++ b/recipes/doctrine/doctrine-bundle/manifest.json @@ -0,0 +1,16 @@ +{ + "bundles": { + "Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/", + "src/": "%SRC_DIR%/" + }, + "env": { + "DB_HOST": "127.0.0.1", + "DB_PORT": "", + "DB_NAME": "symfony", + "DB_USER": "root", + "DB_PASSWORD": "" + } +} diff --git a/recipes/doctrine/doctrine-bundle/src/Entity/.gitkeep b/recipes/doctrine/doctrine-bundle/src/Entity/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/recipes/dunglas/action-bundle/etc/packages/dunglas_action.yaml b/recipes/dunglas/action-bundle/etc/packages/dunglas_action.yaml new file mode 100644 index 00000000..533139e3 --- /dev/null +++ b/recipes/dunglas/action-bundle/etc/packages/dunglas_action.yaml @@ -0,0 +1,3 @@ +dunglas_action: + directories: + - "../src/{Action,Command,Controller,EventSubscriber,Twig}" diff --git a/recipes/dunglas/action-bundle/manifest.json b/recipes/dunglas/action-bundle/manifest.json new file mode 100644 index 00000000..2ed76248 --- /dev/null +++ b/recipes/dunglas/action-bundle/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Dunglas\\ActionBundle\\DunglasActionBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/easycorp/easy-log-handler/etc/packages/dev/easy-log-handler.yaml b/recipes/easycorp/easy-log-handler/etc/packages/dev/easy-log-handler.yaml new file mode 100644 index 00000000..4de221de --- /dev/null +++ b/recipes/easycorp/easy-log-handler/etc/packages/dev/easy-log-handler.yaml @@ -0,0 +1,17 @@ +services: + easycorp.easylog.handler: + class: EasyCorp\EasyLog\EasyLogHandler + public: false + arguments: ["%kernel.logs_dir%/%kernel.environment%.log"] + +#// FIXME: How to add this configuration automatically without messing up with the monolog configuration? +#monolog: +# handlers: +# buffered: +# type: buffer +# handler: easylog +# channels: ["!event"] +# level: debug +# easylog: +# type: service +# id: easycorp.easylog.handler diff --git a/recipes/easycorp/easy-log-handler/manifest.json b/recipes/easycorp/easy-log-handler/manifest.json new file mode 100644 index 00000000..9a55513d --- /dev/null +++ b/recipes/easycorp/easy-log-handler/manifest.json @@ -0,0 +1,5 @@ +{ + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/javiereguiluz/easyadmin-bundle/etc/packages/easy_admin.yaml b/recipes/javiereguiluz/easyadmin-bundle/etc/packages/easy_admin.yaml new file mode 100644 index 00000000..5cf4ed10 --- /dev/null +++ b/recipes/javiereguiluz/easyadmin-bundle/etc/packages/easy_admin.yaml @@ -0,0 +1,6 @@ +easy_admin: + entities: + # List the entity class name you want to manage + #Entity\Product + #Entity\Category + #Entity\User diff --git a/recipes/javiereguiluz/easyadmin-bundle/etc/routing/easy_admin.yaml b/recipes/javiereguiluz/easyadmin-bundle/etc/routing/easy_admin.yaml new file mode 100644 index 00000000..6d2f48ec --- /dev/null +++ b/recipes/javiereguiluz/easyadmin-bundle/etc/routing/easy_admin.yaml @@ -0,0 +1,4 @@ +easy_admin_bundle: + resource: "@EasyAdminBundle/Controller" + prefix: /admin + type: annotation diff --git a/recipes/javiereguiluz/easyadmin-bundle/manifest.json b/recipes/javiereguiluz/easyadmin-bundle/manifest.json new file mode 100644 index 00000000..69ffbc84 --- /dev/null +++ b/recipes/javiereguiluz/easyadmin-bundle/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "JavierEguiluz\\Bundle\\EasyAdminBundle\\EasyAdminBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/sensio/framework-extra-bundle/etc/packages/framework_extra.yaml b/recipes/sensio/framework-extra-bundle/etc/packages/framework_extra.yaml new file mode 100644 index 00000000..a37058c3 --- /dev/null +++ b/recipes/sensio/framework-extra-bundle/etc/packages/framework_extra.yaml @@ -0,0 +1,2 @@ +framework: + annotations: true diff --git a/recipes/sensio/framework-extra-bundle/manifest.json b/recipes/sensio/framework-extra-bundle/manifest.json new file mode 100644 index 00000000..4977c61a --- /dev/null +++ b/recipes/sensio/framework-extra-bundle/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Sensio\\Bundle\\FrameworkExtraBundle\\SensioFrameworkExtraBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/sensiolabs/security-checker/etc/packages/dev/security-checker.yaml b/recipes/sensiolabs/security-checker/etc/packages/dev/security-checker.yaml new file mode 100644 index 00000000..0e229ff6 --- /dev/null +++ b/recipes/sensiolabs/security-checker/etc/packages/dev/security-checker.yaml @@ -0,0 +1,10 @@ +services: + sensio_distribution.security_checker: + class: SensioLabs\Security\SecurityChecker + public: false + + sensio_distribution.security_checker.command: + class: SensioLabs\Security\Command\SecurityCheckerCommand + arguments: @sensio_distribution.security_checker + tags: + - { name: console.command } diff --git a/recipes/sensiolabs/security-checker/manifest.json b/recipes/sensiolabs/security-checker/manifest.json new file mode 100644 index 00000000..a1a5daa9 --- /dev/null +++ b/recipes/sensiolabs/security-checker/manifest.json @@ -0,0 +1,8 @@ +{ + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + }, + "composer-scripts": { + "vendor/bin/security-checker security:check": "php-script" + } +} diff --git a/recipes/symfony/console/bin/console b/recipes/symfony/console/bin/console new file mode 100755 index 00000000..a992577f --- /dev/null +++ b/recipes/symfony/console/bin/console @@ -0,0 +1,36 @@ +#!/usr/bin/env php +load(__DIR__.'/../.env'); +} + +$input = new ArgvInput(); +$env = $input->getParameterOption(['--env', '-e'], getenv('APP_ENV') ?: 'dev'); +$debug = getenv('APP_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']); + +if ($debug && class_exists(Debug::class)) { + Debug::enable(); +} + +$kernel = new AppKernel($env, $debug); +$application = new Application($kernel); +$application->run($input); diff --git a/recipes/symfony/console/manifest.json b/recipes/symfony/console/manifest.json new file mode 100644 index 00000000..016e5b67 --- /dev/null +++ b/recipes/symfony/console/manifest.json @@ -0,0 +1,5 @@ +{ + "copy-from-recipe": { + "bin/": "%BIN_DIR%/" + } +} diff --git a/recipes/symfony/debug-bundle/manifest.json b/recipes/symfony/debug-bundle/manifest.json new file mode 100644 index 00000000..db28aa76 --- /dev/null +++ b/recipes/symfony/debug-bundle/manifest.json @@ -0,0 +1,5 @@ +{ + "bundles": { + "Symfony\\Bundle\\DebugBundle\\DebugBundle": ["dev", "test"] + } +} diff --git a/recipes/symfony/framework-bundle/etc/packages/dev/framework.yaml b/recipes/symfony/framework-bundle/etc/packages/dev/framework.yaml new file mode 100644 index 00000000..4116679a --- /dev/null +++ b/recipes/symfony/framework-bundle/etc/packages/dev/framework.yaml @@ -0,0 +1,3 @@ +framework: + router: + strict_requirements: true diff --git a/recipes/symfony/framework-bundle/etc/packages/framework.yaml b/recipes/symfony/framework-bundle/etc/packages/framework.yaml new file mode 100644 index 00000000..b970fa7d --- /dev/null +++ b/recipes/symfony/framework-bundle/etc/packages/framework.yaml @@ -0,0 +1,20 @@ +framework: + secret: "%env(APP_SECRET)%" + #default_locale: en + #csrf_protection: null + #http_method_override: true + #trusted_hosts: null + #trusted_proxies: null + # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id + #session: + # handler_id: session.handler.native_file + # save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%" + #], + #esi: ~ + #fragments: ~ + php_errors: + log: true + router: + resource: kernel:loadRoutes + type: service + strict_requirements: null diff --git a/recipes/symfony/framework-bundle/etc/packages/test/framework.yaml b/recipes/symfony/framework-bundle/etc/packages/test/framework.yaml new file mode 100644 index 00000000..2ad0bdef --- /dev/null +++ b/recipes/symfony/framework-bundle/etc/packages/test/framework.yaml @@ -0,0 +1,4 @@ +framework: + test: null + session: + storage_id: session.storage.mock_file diff --git a/recipes/symfony/framework-bundle/manifest.json b/recipes/symfony/framework-bundle/manifest.json new file mode 100644 index 00000000..b14d2749 --- /dev/null +++ b/recipes/symfony/framework-bundle/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + }, + "composer-scripts": { + "cache:clear --no-warmup": "symfony-cmd", + "cache:warmup": "symfony-cmd", + "assets:install --symlink --relative %WEB_DIR%": "symfony-cmd" + } +} diff --git a/recipes/symfony/monolog-bundle/etc/packages/dev/monolog.php b/recipes/symfony/monolog-bundle/etc/packages/dev/monolog.php new file mode 100644 index 00000000..f6269610 --- /dev/null +++ b/recipes/symfony/monolog-bundle/etc/packages/dev/monolog.php @@ -0,0 +1,35 @@ + [ + 'type' => 'stream', + 'path' => '%kernel.logs_dir%/%kernel.environment%.log', + 'level' => 'debug', + 'channels' => ['!event'], + ], + // uncomment to get logging in your browser + // you may have to allow bigger header sizes in your Web server configuration + //'firephp' => [ + // 'type' => 'firephp', + // 'level' => 'info', + //], + //'chromephp' => [ + // 'type' => 'chromephp', + // 'level' => 'info', + //], +]; + +$container->addResource(new ClassExistenceResource(Application::class)); +if (class_exists(Application::class)) { + $handlers['console'] = [ + 'type' => 'console', + 'channels' => ['!event', '!doctrine'], + ]; +} + +$container->loadFromExtension('monolog', [ + 'handlers' => $handlers, +]); diff --git a/recipes/symfony/monolog-bundle/etc/packages/prod/monolog.php b/recipes/symfony/monolog-bundle/etc/packages/prod/monolog.php new file mode 100644 index 00000000..737801be --- /dev/null +++ b/recipes/symfony/monolog-bundle/etc/packages/prod/monolog.php @@ -0,0 +1,29 @@ + [ + 'type' => 'fingers_crossed', + 'action_level' => 'error', + 'handler' => 'nested', + ], + 'nested' => [ + 'type' => 'stream', + 'path' => '%kernel.logs_dir%/%kernel.environment%.log', + 'level' => 'debug', + ], +]; + +$container->addResource(new ClassExistenceResource(Application::class)); +if (class_exists(Application::class)) { + $handlers['console'] = [ + 'type' => 'console', + 'channels' => ['!event', '!doctrine'], + ]; +} + +$container->loadFromExtension('monolog', [ + 'handlers' => $handlers, +]); diff --git a/recipes/symfony/monolog-bundle/manifest.json b/recipes/symfony/monolog-bundle/manifest.json new file mode 100644 index 00000000..7d8c1d17 --- /dev/null +++ b/recipes/symfony/monolog-bundle/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Symfony\\Bundle\\MonologBundle\\MonologBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/symfony/requirements-checker/manifest.json b/recipes/symfony/requirements-checker/manifest.json new file mode 100644 index 00000000..8de212a0 --- /dev/null +++ b/recipes/symfony/requirements-checker/manifest.json @@ -0,0 +1,9 @@ +{ + "copy-from-package": { + "bin/check.php": "%BIN_DIR%/check.php", + "web/check.php": "%WEB_DIR%/check.php" + }, + "composer-scripts": { + "%BIN_DIR%/check.php": "php-script" + } +} diff --git a/recipes/symfony/security-bundle/etc/packages/security.yaml b/recipes/symfony/security-bundle/etc/packages/security.yaml new file mode 100644 index 00000000..4a137698 --- /dev/null +++ b/recipes/symfony/security-bundle/etc/packages/security.yaml @@ -0,0 +1,18 @@ +security: + # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers + providers: + in_memory: { memory: null } + firewalls: + dev: + pattern: ^/(_(profiler|wdt)|css|images|js)/ + security: false + main: + anonymous: null + + # activate different ways to authenticate + + # http_basic: null + # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate + + # form_login: null + # http://symfony.com/doc/current/cookbook/security/form_login_setup.html diff --git a/recipes/symfony/security-bundle/manifest.json b/recipes/symfony/security-bundle/manifest.json new file mode 100644 index 00000000..6e1d0bbd --- /dev/null +++ b/recipes/symfony/security-bundle/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Symfony\\Bundle\\SecurityBundle\\SecurityBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/symfony/swiftmailer-bundle/etc/packages/dev/swiftmailer.yaml b/recipes/symfony/swiftmailer-bundle/etc/packages/dev/swiftmailer.yaml new file mode 100644 index 00000000..31fab6c6 --- /dev/null +++ b/recipes/symfony/swiftmailer-bundle/etc/packages/dev/swiftmailer.yaml @@ -0,0 +1,2 @@ +#swiftmailer: + #delivery_address: me@example.com diff --git a/recipes/symfony/swiftmailer-bundle/etc/packages/swiftmailer.yaml b/recipes/symfony/swiftmailer-bundle/etc/packages/swiftmailer.yaml new file mode 100644 index 00000000..ae42b74f --- /dev/null +++ b/recipes/symfony/swiftmailer-bundle/etc/packages/swiftmailer.yaml @@ -0,0 +1,6 @@ +swiftmailer: + transport: smtp + host: "%env(MAILER_HOST)%" + username: "%env(MAILER_USERNAME)%" + password: "%env(MAILER_PASSWORD)%" + spool: { type: "memory" } diff --git a/recipes/symfony/swiftmailer-bundle/etc/packages/test/swiftmailer.yaml b/recipes/symfony/swiftmailer-bundle/etc/packages/test/swiftmailer.yaml new file mode 100644 index 00000000..f4380780 --- /dev/null +++ b/recipes/symfony/swiftmailer-bundle/etc/packages/test/swiftmailer.yaml @@ -0,0 +1,2 @@ +swiftmailer: + disable_delivery: true diff --git a/recipes/symfony/swiftmailer-bundle/manifest.json b/recipes/symfony/swiftmailer-bundle/manifest.json new file mode 100644 index 00000000..758f4bfa --- /dev/null +++ b/recipes/symfony/swiftmailer-bundle/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Symfony\\Bundle\\SwiftmailerBundle\\SwiftmailerBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + }, + "env": { + "MAILER_HOST": "127.0.0.1", + "MAILER_USERNAME": "", + "MAILER_PASSWORD": "" + } +} diff --git a/recipes/symfony/twig-bundle/etc/packages/twig.yaml b/recipes/symfony/twig-bundle/etc/packages/twig.yaml new file mode 100644 index 00000000..a0833c7e --- /dev/null +++ b/recipes/symfony/twig-bundle/etc/packages/twig.yaml @@ -0,0 +1,4 @@ +twig: + paths: ["%kernel.root_dir%/../templates"] + debug: "%kernel.debug%" + strict_variables: "%kernel.debug%" diff --git a/recipes/symfony/twig-bundle/manifest.json b/recipes/symfony/twig-bundle/manifest.json new file mode 100644 index 00000000..1c578fee --- /dev/null +++ b/recipes/symfony/twig-bundle/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/symfony/web-profiler-bundle/etc/packages/dev/web_profiler.yaml b/recipes/symfony/web-profiler-bundle/etc/packages/dev/web_profiler.yaml new file mode 100644 index 00000000..e92166a7 --- /dev/null +++ b/recipes/symfony/web-profiler-bundle/etc/packages/dev/web_profiler.yaml @@ -0,0 +1,6 @@ +web_profiler: + toolbar: true + intercept_redirects: false + +framework: + profiler: { only_exceptions: false } diff --git a/recipes/symfony/web-profiler-bundle/etc/packages/test/web_profiler.yaml b/recipes/symfony/web-profiler-bundle/etc/packages/test/web_profiler.yaml new file mode 100644 index 00000000..03752de2 --- /dev/null +++ b/recipes/symfony/web-profiler-bundle/etc/packages/test/web_profiler.yaml @@ -0,0 +1,6 @@ +web_profiler: + toolbar: false + intercept_redirects: false + +framework: + profiler: { collect: false } diff --git a/recipes/symfony/web-profiler-bundle/etc/routing/dev/web_profiler.yaml b/recipes/symfony/web-profiler-bundle/etc/routing/dev/web_profiler.yaml new file mode 100644 index 00000000..ce3155d4 --- /dev/null +++ b/recipes/symfony/web-profiler-bundle/etc/routing/dev/web_profiler.yaml @@ -0,0 +1,7 @@ +web_profiler_wdt: + resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" + prefix: /_wdt + +web_profiler_profiler: + resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" + prefix: /_profiler diff --git a/recipes/symfony/web-profiler-bundle/manifest.json b/recipes/symfony/web-profiler-bundle/manifest.json new file mode 100644 index 00000000..07279611 --- /dev/null +++ b/recipes/symfony/web-profiler-bundle/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle": ["dev", "test"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/recipes/symfony/web-server-bundle/manifest.json b/recipes/symfony/web-server-bundle/manifest.json new file mode 100644 index 00000000..df5292f1 --- /dev/null +++ b/recipes/symfony/web-server-bundle/manifest.json @@ -0,0 +1,5 @@ +{ + "bundles": { + "Symfony\\Bundle\\WebServerBundle\\WebServerBundle": ["dev"] + } +}