コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function getDiscovery()
 {
     if (!isset($this->discovery)) {
         $this->discovery = parent::getDiscovery();
         $this->discovery = new StaticDiscoveryDecorator($this->discovery, [$this, 'registerDefinitions']);
     }
     return $this->discovery;
 }