Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1afa60

Browse filesBrowse files
committed
Merge branch '5.0'
* 5.0: Fixed wrongly resolved merge conflict
2 parents cdf3708 + 5e9aa31 commit e1afa60
Copy full SHA for e1afa60

File tree

1 file changed

+10
-15
lines changed
Filter options

1 file changed

+10
-15
lines changed

‎service_container.rst

Copy file name to clipboardExpand all lines: service_container.rst
+10-15Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -990,29 +990,24 @@ for classes under the same namespace:
990990

991991
.. code-block:: yaml
992992
993-
# app/config/services.yml
993+
# config/services.yaml
994994
services:
995-
AppBundle\Domain\:
996-
resource: '../../src/AppBundleDomain/*'
997-
998-
# config/services.yaml
999-
services:
1000-
App\Domain\:
1001-
resource: '../src/Domain/*'
1002-
# ...
995+
App\Domain\:
996+
resource: '../src/Domain/*'
997+
# ...
1003998
1004999
.. code-block:: xml
10051000
1006-
<!-- app/config/services.xml -->
1001+
<!-- config/services.xml -->
10071002
<?xml version="1.0" encoding="UTF-8" ?>
10081003
<container xmlns="http://symfony.com/schema/dic/services"
10091004
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10101005
xsi:schemaLocation="http://symfony.com/schema/dic/services
10111006
https://symfony.com/schema/dic/services/services-1.0.xsd">
10121007
10131008
<services>
1014-
<prototype namespace="AppBundle\Domain"
1015-
resource="../../src/AppBundle/Domain/*"/>
1009+
<prototype namespace="App\Domain"
1010+
resource="../src/App/Domain/*"/>
10161011
</prototype>
10171012
10181013
<!-- ... -->
@@ -1021,16 +1016,16 @@ for classes under the same namespace:
10211016
10221017
.. code-block:: php
10231018
1024-
// app/config/services.php
1019+
// config/services.php
10251020
use Symfony\Component\DependencyInjection\Definition;
10261021
10271022
$defaults = new Definition();
10281023
10291024
// $this is a reference to the current loader
10301025
$this->registerClasses(
10311026
$defaults,
1032-
'AppBundle\\Domain\\',
1033-
'../../src/AppBundle/Domain/*'
1027+
'App\\Domain\\',
1028+
'../src/App/Domain/*'
10341029
);
10351030
10361031
// ...

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.