File tree 1 file changed +10
-15
lines changed
1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -990,29 +990,24 @@ for classes under the same namespace:
990
990
991
991
.. code-block :: yaml
992
992
993
- # app/ config/services.yml
993
+ # config/services.yaml
994
994
services :
995
- AppBundle\Domain\ :
996
- resource : ' ../../src/AppBundleDomain/*'
997
-
998
- # config/services.yaml
999
- services:
1000
- App\D omain\:
1001
- resource: '../src/Domain/*'
1002
- # ...
995
+ App\Domain\ :
996
+ resource : ' ../src/Domain/*'
997
+ # ...
1003
998
1004
999
.. code-block :: xml
1005
1000
1006
- <!-- app/ config/services.xml -->
1001
+ <!-- config/services.xml -->
1007
1002
<?xml version =" 1.0" encoding =" UTF-8" ?>
1008
1003
<container xmlns =" http://symfony.com/schema/dic/services"
1009
1004
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1010
1005
xsi : schemaLocation =" http://symfony.com/schema/dic/services
1011
1006
https://symfony.com/schema/dic/services/services-1.0.xsd" >
1012
1007
1013
1008
<services >
1014
- <prototype namespace =" AppBundle \Domain"
1015
- resource =" ../../ src/AppBundle /Domain/*" />
1009
+ <prototype namespace =" App \Domain"
1010
+ resource =" ../src/App /Domain/*" />
1016
1011
</prototype >
1017
1012
1018
1013
<!-- ... -->
@@ -1021,16 +1016,16 @@ for classes under the same namespace:
1021
1016
1022
1017
.. code-block :: php
1023
1018
1024
- // app/ config/services.php
1019
+ // config/services.php
1025
1020
use Symfony\Component\DependencyInjection\Definition;
1026
1021
1027
1022
$defaults = new Definition();
1028
1023
1029
1024
// $this is a reference to the current loader
1030
1025
$this->registerClasses(
1031
1026
$defaults,
1032
- 'AppBundle \\Domain\\',
1033
- '../../ src/AppBundle /Domain/*'
1027
+ 'App \\Domain\\',
1028
+ '../src/App /Domain/*'
1034
1029
);
1035
1030
1036
1031
// ...
You can’t perform that action at this time.
0 commit comments