src/core/class-papi-core-container.php
public function make( $id, array $parameters = [] ) {
		if ( ! $this->exists( $id ) ) {
			throw new Exception( sprintf( 'Identifier `%s` is not defined', $id ) );
		}

		$id      = $this->get_class_prefix( $id );
		$value   = $this->values[$id];
		$closure = $value['closure'];

		return $this->call_closure( $closure, $parameters );
	}
public function make( $id, array $parameters = [] ) {
		if ( ! $this->exists( $id ) ) {
			throw new Exception( sprintf( 'Identifier `%s` is not defined', $id ) );
		}

		$id      = $this->get_class_prefix( $id );
		$value   = $this->values[$id];
		$closure = $value['closure'];

		return $this->call_closure( $closure, $parameters );
	}
Resolve the given type from the container.

@param string $id
@param array  $parameters

@throws Exception if identifier is not defined.

@return Closure