/** * @return Container */ private function container() { if ($this->container === null) { $container = new Container(); $containerProvider = new ContainerProvider(); $containerProvider->registerBaseUrl($container); $containerProvider->registerAdminConfig($container); $containerProvider->registerAuthenticator($container); $containerProvider->registerAuthorizer($container); $containerProvider->registerEmailFactory($container); $this->container = $container; } return $this->container; }