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

Commit e44c4b1

Browse files
committed
minor #1065 Use single quotes and project_dir parameter (yceruto)
This PR was merged into the 3.3-dev branch. Discussion ---------- Use single quotes and project_dir parameter Commits ------- 7ee6fcd Use single quotes and project_dir parameter
2 parents 841be9d + 7ee6fcd commit e44c4b1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/config/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -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.project_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

+1-1
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

+1-1
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

+1-1
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)