public function beforeInitialization() { $this->app = AppFactory::getInstance(); $this->container = $this->app->getContainer(); }