* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ChildDefinition; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; /** * @author Nicolas Grekas */ class ResolveClassPass implements CompilerPassInterface { private $changes = array(); /** * {@inheritdoc} */ public function process(ContainerBuilder $container) { foreach ($container->getDefinitions() as $id => $definition) { if ($definition->isSynthetic() || null !== $definition->getClass()) { continue; } if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)++$/', $id)) { if ($definition instanceof ChildDefinition && !class_exists($id)) { throw new InvalidArgumentException(sprintf('Service definition "%s" has a parent but no class, and its name looks like a FQCN. Either the class is missing or you want to inherit it from the parent service. To resolve this ambiguity, please rename this service to a non-FQCN (e.g. using dots), or create the missing class.', $id)); } $this->changes[strtolower($id)] = $id; $definition->setClass($id); } } } /** * @internal * * @deprecated since 3.3, to be removed in 4.0. */ public function getChanges() { $changes = $this->changes; $this->changes = array(); return $changes; } } __halt_compiler();----SIGNATURE:----Wu4L5PAuS6lPBe20AaAmrMEtcJ5/WwqpH25FsAy6S2e4OXk4I44tRsIR45x036LuTe/UbmtW60keTgUSWFMJzEEx36BWlhlxah874+oj7ZKzOnBW+cKEHvO7SI1EYg5aNc9+0NbT60eMTx4QCjRkUujHGoQ59B5y6QYVh/0R2pKZUD28M0Z93M25U8PCGMyTFtzfFv6NXJlztzlXh5TyTM016kJE01DJ8nHkMCzqDN4YEk+kNQZHkbUkLan7WOhV42Oh8Up2HVRTml2ZcoIJIu2vPvlM2u+wISoGvBzXo/Y+1IPh5X1gIkALcz7h3I/eGsMT/nr2xtLO9dzrRJRQeMhpqT9nZxKHBCHAv0B/RGdnnhDZ3ETI322PXqPlSUEFm5WvHEPkaLE4/Xas4YDhojY1D5CTcXJ6nQ1vGRWiyvOzQmVl+//Ml8hZ+uLVV78/YPUvu4ooJXBhPFKE/685apEczy7mRrSWnC55SfvOvxG9L92ZuaK48pMaV8zYrMS0GkvkA6xRylNGREz0MYLjZM367e3xLyDv+ScWBlo22LAy7TBmdhy2mH0n/d2Yg3MYc06S5E7jNouLfPZdMQN898SQB5YgFIlid1qBaHsO9HFQ/2EYGbcaBR7kW0Oug5EAie9GvCFFvHSTuCWFYUjJoRSqLbMtyJDDIK9kEiQ4kDI=----ATTACHMENT:----Njc4OTkxMjYyMTYzNzQwNiA3MDYwMzUwMTQ2NDIxNjIyIDQ3ODkxODM1MTUzMzUyMjY=