Container::get( string $id )

Finds an entry of the container by its identifier and returns it.


Parameters

$id

(string) (Required) A fully qualified class or interface name or an already built object.


Top ↑

Return

(mixed) The entry for an id.


Top ↑

Source

File: src/Conference/Contracts/Container.php

	public function get( $id ) {
		try {
			return parent::get( $id );
		} catch ( \Exception $e ) {
			// Do not chain the previous exception into ours, as it makes the error log confusing.
			throw new Not_Bound_Exception( $e->getMessage(), $e->getCode() );
		}
	}

Top ↑

Changelog

Changelog
Version Description
1.0.0 Introduced.