Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function getName()
 {
     return $this->bus->getName();
 }
Esempio n. 2
0
 /**
  * Assert valid system bus.
  *
  * @param BusInterface $bus
  */
 private function assertValidSystemBus(BusInterface $bus)
 {
     if (false === $bus instanceof SystemBus) {
         throw new InvalidArgumentException(sprintf('Bus with name "%s" reserved for system bus.', $bus->getName()));
     }
 }