File tree 6 files changed +4
-11
lines changed
6 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ framework:
33
33
translator : { fallback: '%locale%' }
34
34
secret : ' %env(SYMFONY_SECRET)%'
35
35
router :
36
- resource : ' %kernel.root_dir% /config/routing.yml'
36
+ resource : ' %kernel.project_dir%/app /config/routing.yml'
37
37
strict_requirements : ~
38
38
form : ~
39
39
csrf_protection : ~
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 @@ -21,7 +21,7 @@ web_profiler:
21
21
# In this case we just need to define a different path for the application database.
22
22
doctrine :
23
23
dbal :
24
- path : " %kernel.root_dir%/.. /var/data/blog_test.sqlite"
24
+ path : " %kernel.project_dir% /var/data/blog_test.sqlite"
25
25
26
26
# this configuration simplifies testing URLs protected by the security mechanism
27
27
# See https://symfony.com/doc/current/cookbook/testing/http_authentication.html
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ parameters:
17
17
# this demo application uses an embedded SQLite database to simplify setup.
18
18
# in a real Symfony application you probably will use a MySQL or PostgreSQL database
19
19
# the path must be relative or else it will not work on Windows
20
- env(DATABASE_URL): 'sqlite:///%kernel.root_dir%/.. /var/data/blog.sqlite'
20
+ env(DATABASE_URL): 'sqlite:///%kernel.project_dir% /var/data/blog.sqlite'
21
21
22
22
# Uncomment this line to use a MySQL database instead of SQLite (and remove
23
23
# the "doctrine" section from config_dev.yml regarding SQLite):
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ services:
2
2
code_explorer.twig.source_code_extension :
3
3
public : false
4
4
class : CodeExplorerBundle\Twig\SourceCodeExtension
5
- arguments : ['%kernel.root_dir%']
6
5
tags :
7
6
- { name: twig.extension }
8
7
Original file line number Diff line number Diff line change 23
23
class SourceCodeExtension extends \Twig_Extension
24
24
{
25
25
private $ controller ;
26
- private $ kernelRootDir ;
27
-
28
- public function __construct ($ kernelRootDir )
29
- {
30
- $ this ->kernelRootDir = $ kernelRootDir ;
31
- }
32
26
33
27
public function setController ($ controller )
34
28
{
You can’t perform that action at this time.
0 commit comments