container = $runtime_container ?? new RuntimeContainer( array( self::class => $this, ContainerInterface::class => $this, ) ); } /** * Get a service from the container. * * @param string $id Class name. * @return mixed */ public function get( $id ) { return $this->container->get( $id ); } /** * Check if the container has a service. * * @param string $id Class name. * @return bool */ public function has( $id ): bool { return $this->container->has( $id ); } }