/** * @throws ExecutionException */ private function registerAliases() { foreach ($this->serviceAliases as $alias => $concrete) { try { $this->core->alias($alias, $concrete); } catch (Error $ex) { throw new ExecutionException("Alias [{$alias}] could not have be registered.", $ex); } catch (Exception $ex) { throw new ExecutionException("Alias [{$alias}] could not have be registered.", $ex); } } }