8000 Fix name and phpdoc of ContainerBuilder::removeBindings · symfony/symfony@c93194d · GitHub
[go: up one dir, main page]

Skip to content

Commit c93194d

Browse files
committed
Fix name and phpdoc of ContainerBuilder::removeBindings
1 parent e376c99 commit c93194d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,13 +1527,13 @@ public function getRemovedBindingIds()
15271527
}
15281528

15291529
/**
1530-
* Adds a removed binding id.
1530+
* Removes bindings for a service.
15311531
*
1532-
* @param int $id
1532+
* @param string $id The service identifier
15331533
*
15341534
* @internal
15351535
*/
1536-
public function addRemovedBindingIds($id)
1536+
public function removeBindings($id)
15371537
{
15381538
if ($this->hasDefinition($id)) {
15391539
foreach ($this->getDefinition($id)->getBindings() as $key => $binding) {

src/Symfony/Component/DependencyInjection/Loader/Configurator/ServiceConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __destruct()
5959
{
6060
parent::__destruct();
6161

62-
$this->container->addRemovedBindingIds($this->id);
62+
$this->container->removeBindings($this->id);
6363

6464
if (!$this->definition instanceof ChildDefinition) {
6565
$this->container->setDefinition($this->id, $this->definition->setInstanceofConditionals($this->instanceof));

src/Symfony/Component/DependencyInjection/Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function registerClasses(Definition $prototype, $namespace, $resource, $e
9191
*/
9292
protected function setDefinition($id, Definition $definition)
9393
{
94-
$this->container->addRemovedBindingIds($id);
94+
$this->container->removeBindings($id);
9595

9696
if ($this->isLoadingInstanceof) {
9797
if (!$definition instanceof ChildDefinition) {

0 commit comments

Comments
 (0)
0