/** * @return Bootstrap */ protected function registerContainerReflection() : Bootstrap { // Container Reflections if not already registered if (!$this->container->has(Container::class)) { $this->container->share(Container::class, $this->container); $this->container->inflector(ImmutableContainerAwareInterface::class)->invokeMethod('setContainer', [Container::class]); $this->container->inflector(ContainerAwareInterface::class)->invokeMethod('setContainer', [Container::class]); } return $this; }