public function process(ContainerBuilder $container)
 {
     $parameterBag = $container->getParameterBag();
     foreach ($container->getDefinitions() as $serviceId => $definition) {
         if (!$this->canBeAdded($definition)) {
             continue;
         }
         $this->classMap->put($parameterBag->resolveValue($definition->getClass()), $serviceId);
     }
 }
 public function testGetMultiForClassAddedTwice()
 {
     $this->classMultiMap->put(self::SOME_CLASS_NAME, "someValue");
     $this->classMultiMap->put(self::SOME_CLASS_NAME, "someOtherValue");
     $this->assertSame(["someValue", "someOtherValue"], $this->classMultiMap->getMulti(self::SOME_CLASS_NAME));
 }