public function registerProvider(ContainerInterface $container) { try { $this->register($container); $this->registered = true; return; } catch (Error $ex) { } catch (Exception $ex) { } $this->throwException($ex); }