8000 minor #23452 [DI] Remove irrelevant comment from container (ro0NL) · symfony/symfony@0100ca1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0100ca1

Browse files
committed
minor #23452 [DI] Remove irrelevant comment from container (ro0NL)
This PR was merged into the 2.7 branch. Discussion ---------- [DI] Remove irrelevant comment from container | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes-ish | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Spotted in #22811 Commits ------- 595a225 [DI] Remove irrelevant comment from container
2 parents d76171e + 595a225 commit 0100ca1

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/Symfony/Component/DependencyInjection/Container.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@
2929
*
3030
* Parameter and service keys are case insensitive.
3131
*
32-
* A service id can contain lowercased letters, digits, underscores, and dots.
33-
* Underscores are used to separate words, and dots to group services
34-
* under namespaces:
35-
*
36-
* <ul>
37-
* <li>request</li>
38-
* <li>mysql_session_storage</li>
39-
* <li>symfony.mysql_session_storage</li>
40-
* </ul>
41-
*
4232
* A service can also be defined by creating a method named
4333
* getXXXService(), where XXX is the camelized version of the id:
4434
*

src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ public function testGetServiceIds()
134134
public function testSet()
135135
{
136136
$sc = new Container();
137-
$sc->set('foo', $foo = new \stdClass());
138-
$this->assertSame($foo, $sc->get('foo'), '->set() sets a service');
137+
$sc->set('._. \\o/', $foo = new \stdClass());
138+
$this->assertSame($foo, $sc->get('._. \\o/'), '->set() sets a service');
139139
}
140140

141141
public function testSetWithNullResetTheService()

0 commit comments

Comments
 (0)
0