container) { return $this->container; } throw new ContainerNotFoundException('Container not set in ' . \get_class($this)); } /** * Set the DI container. * * @param Container $container The DI container. * * @return $this * * @since 1.2 */ public function setContainer(Container $container) { $this->container = $container; return $this; } }