This repository was archived by the owner on Nov 27, 2020. It is now read-only.
File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ framework:
13
13
# translator: { fallbacks: ['%locale%'] }
14
14
secret : ' %secret%'
15
15
router :
16
- resource : ' %kernel.root_dir% /config/routing.yml'
16
+ resource : ' %kernel.project_dir%/app /config/routing.yml'
17
17
strict_requirements : ~
18
18
form : ~
19
19
csrf_protection : ~
@@ -26,7 +26,7 @@ framework:
26
26
session :
27
27
# http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
28
28
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%'
30
30
fragments : ~
31
31
http_method_override : true
32
32
assets : ~
@@ -50,7 +50,7 @@ doctrine:
50
50
charset : UTF8
51
51
# if using pdo_sqlite as your database driver:
52
52
# 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"
54
54
# 2. Uncomment database_path in parameters.yml.dist
55
55
# 3. Uncomment next line:
56
56
# path: '%database_path%'
Original file line number Diff line number Diff line change 3
3
4
4
framework :
5
5
router :
6
- resource : ' %kernel.root_dir% /config/routing_dev.yml'
6
+ resource : ' %kernel.project_dir%/app /config/routing_dev.yml'
7
7
strict_requirements : true
8
8
profiler : { only_exceptions: false }
9
9
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ parameters:
8
8
database_user: root
9
9
database_password: ~
10
10
# 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'
12
12
13
13
mailer_transport: smtp
14
14
mailer_host: 127.0.0.1
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function indexAction(Request $request)
15
15
{
16
16
// replace this example code with whatever you need
17
17
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 ,
19
19
]);
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments