Skip to content

Commit 4447245

Browse files
franmomuphansys
authored andcommitted
Replace kernel.root_dir by kernel.project_dir
1 parent 7a5426d commit 4447245

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/symfony4.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ doctrine:
5858
alias: Gedmo
5959
prefix: Gedmo\Translatable\Entity
6060
# make sure vendor library location is correct
61-
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/src/Translatable/Entity"
61+
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translatable/Entity"
6262
```
6363
6464
After that, running **php bin/console doctrine:mapping:info** you should see the output:
@@ -83,7 +83,7 @@ mappings:
8383
alias: Gedmo
8484
prefix: Gedmo\Translatable\Entity
8585
# make sure vendor library location is correct
86-
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/src/Translatable/Entity/MappedSuperclass"
86+
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translatable/Entity/MappedSuperclass"
8787
```
8888
8989
The configuration above, adds a **/MappedSuperclass** into directory depth, after running
@@ -110,17 +110,17 @@ orm:
110110
alias: Gedmo
111111
prefix: Gedmo\Translatable\Entity
112112
# make sure vendor library location is correct
113-
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/src/Translatable/Entity"
113+
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translatable/Entity"
114114
loggable:
115115
type: annotation # or attribute
116116
alias: Gedmo
117117
prefix: Gedmo\Loggable\Entity
118-
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/src/Loggable/Entity"
118+
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Loggable/Entity"
119119
tree:
120120
type: annotation # or attribute
121121
alias: Gedmo
122122
prefix: Gedmo\Tree\Entity
123-
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/src/Tree/Entity"
123+
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Tree/Entity"
124124
```
125125
<a name="ext-filtering"></a>
126126
## Filters
@@ -450,7 +450,7 @@ doctrine_mongodb:
450450
alias: GedmoDocument
451451
prefix: Gedmo\Translatable\Document
452452
# make sure vendor library location is correct
453-
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/src/Translatable/Document"
453+
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translatable/Document"
454454
```
455455
456456
This also shows, how to make mappings based on single manager. All what differs is that **Document**

0 commit comments

Comments
 (0)