Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getPlugin($plugin)
 {
     if (!is_string($plugin)) {
         throw new InvalidArgumentException('Expecting $plugin to be string, but ' . gettype($plugin) . ' given!');
     }
     if (!isset($this->plugins[$plugin])) {
         return rex_null_plugin::getInstance();
     }
     return $this->plugins[$plugin];
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function getPlugin($plugin)
 {
     return rex_null_plugin::getInstance();
 }