Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Loader/FileLoader.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
89 * @param string $id | 89 * @param string $id |
90 * @param Definition $definition | 90 * @param Definition $definition |
91 */ | 91 */ |
92 protected function setDefinition($id, Definition $definition) | 92 protected function setDefinition($id, Definition $definition) |
93 { | 93 { |
94 $this->container->removeBindings($id); | |
95 | |
94 if ($this->isLoadingInstanceof) { | 96 if ($this->isLoadingInstanceof) { |
95 if (!$definition instanceof ChildDefinition) { | 97 if (!$definition instanceof ChildDefinition) { |
96 throw new InvalidArgumentException(sprintf('Invalid type definition "%s": ChildDefinition expected, "%s" given.', $id, \get_class($definition))); | 98 throw new InvalidArgumentException(sprintf('Invalid type definition "%s": ChildDefinition expected, "%s" given.', $id, \get_class($definition))); |
97 } | 99 } |
98 $this->instanceof[$id] = $definition; | 100 $this->instanceof[$id] = $definition; |