container = $container; } /** * {@inheritdoc} */ public function bind( string $id, $implementation = null, array $after_build_methods = null ) { $this->container->bind( $id, $implementation, $after_build_methods ); } /** * {@inheritdoc} */ public function get( string $id ) { return $this->container->get( $id ); } /** * @since 0.1.0 * * @return DI52Container */ public function get_container() { return $this->container; } /** * {@inheritdoc} */ public function has( string $id ) { return $this->container->has( $id ); } /** * {@inheritdoc} */ public function singleton( string $id, $implementation = null, array $after_build_methods = null ) { $this->container->singleton( $id, $implementation, $after_build_methods ); } /** * Defer all other calls to the container object. * * @since 0.1.0 * * @param string $name The name of the method to call. * @param array $args The arguments to pass to the method. */ public function __call( $name, $args ) { return $this->container->{$name}( ...$args ); } }