registerAlias() public method

public registerAlias ( $alias, $existing )
Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function registerAlias($alias, $interface)
 {
     try {
         $this->serviceRegister->registerAlias($alias, $interface);
         return;
     } catch (Error $ex) {
     } catch (Exception $ex) {
     }
     throw new ExecutionException("Alias could not be registered.", $ex);
 }