Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 7ee6fcd

Browse files
committed
Use single quotes and project_dir parameter
1 parent e53c040 commit 7ee6fcd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/config/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ framework:
1313
#translator: { fallbacks: ['%locale%'] }
1414
secret: '%secret%'
1515
router:
16-
resource: '%kernel.root_dir%/config/routing.yml'
16+
resource: '%kernel.project_dir%/app/config/routing.yml'
1717
strict_requirements: ~
1818
form: ~
1919
csrf_protection: ~
@@ -26,7 +26,7 @@ framework:
2626
session:
2727
# http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
2828
handler_id: session.handler.native_file
29-
save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
29+
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
3030
fragments: ~
3131
http_method_override: true
3232
assets: ~
@@ -50,7 +50,7 @@ doctrine:
5050
charset: UTF8
5151
# if using pdo_sqlite as your database driver:
5252
# 1. add the path in parameters.yml
53-
# e.g. database_path: "%kernel.root_dir%/../var/data/data.sqlite"
53+
# e.g. database_path: "%kernel.project_dir%/var/data/data.sqlite"
5454
# 2. Uncomment database_path in parameters.yml.dist
5555
# 3. Uncomment next line:
5656
#path: '%database_path%'

app/config/config_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ imports:
33

44
framework:
55
router:
6-
resource: '%kernel.root_dir%/config/routing_dev.yml'
6+
resource: '%kernel.project_dir%/app/config/routing_dev.yml'
77
strict_requirements: true
88
profiler: { only_exceptions: false }
99

app/config/parameters.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ parameters:
88
database_user: root
99
database_password: ~
1010
# You should uncomment this if you want to use pdo_sqlite
11-
#database_path: '%kernel.root_dir%/../var/data/data.sqlite'
11+
#database_path: '%kernel.project_dir%/var/data/data.sqlite'
1212

1313
mailer_transport: smtp
1414
mailer_host: 127.0.0.1

src/AppBundle/Controller/DefaultController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function indexAction(Request $request)
1515
{
1616
// replace this example code with whatever you need
1717
return $this->render('default/index.html.twig', [
18-
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
18+
'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR,
1919
]);
2020
}
2121
}

0 commit comments

Comments
 (0)