Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0100ca1

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#22811Commits-------595a225 [DI] Remove irrelevant comment from container
2 parentsd76171e +595a225 commit0100ca1

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
publicfunctiontestSet()
135135
{
136136
$sc =newContainer();
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
publicfunctiontestSetWithNullResetTheService()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp