Miscellaneous fixes leading to a working cache warmup

This commit is contained in:
Kamil Kokot 2018-08-09 17:51:53 +02:00
parent 532476494b
commit 23d685d596
No known key found for this signature in database
GPG key ID: 7BD76F7054D93C89
6 changed files with 13 additions and 4 deletions

2
.env
View file

@ -12,7 +12,7 @@ APP_SECRET=EDITME
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
DATABASE_URL=mysql:///root@127.0.0.1/sylius_${APP_ENV}?serverVersion=5.5
DATABASE_URL=mysql://root@127.0.0.1/sylius_${APP_ENV}?serverVersion=5.5
###< doctrine/doctrine-bundle ###
###> symfony/swiftmailer-bundle ###

View file

@ -1,3 +1,2 @@
framework:
router: { resource: "%kernel.project_dir%/app/config/routing_dev.yml" }
profiler: { only_exceptions: false }

View file

@ -29,7 +29,7 @@ security:
csrf_parameter: _csrf_admin_security_token
csrf_token_id: admin_authenticate
remember_me:
secret: "%secret%"
secret: "%env(APP_SECRET)%"
path: /admin
name: APP_ADMIN_REMEMBER_ME
lifetime: 31536000
@ -69,7 +69,7 @@ security:
csrf_parameter: _csrf_shop_security_token
csrf_token_id: shop_authenticate
remember_me:
secret: "%secret%"
secret: "%env(APP_SECRET)%"
name: APP_SHOP_REMEMBER_ME
lifetime: 31536000
remember_me_parameter: _remember_me

View file

@ -0,0 +1,3 @@
_errors:
resource: '@TwigBundle/Resources/config/routing/errors.xml'
prefix: /_error

View file

@ -0,0 +1,7 @@
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler