src/mako/syringe/Container.php
public function register($hint, $class, bool $singleton = false): void
	{
		$this->hints[$this->parseHint($hint)] = ['class' => $class, 'singleton' => $singleton];
	}
public function register($hint, $class, bool $singleton = false): void
	{
		$this->hints[$this->parseHint($hint)] = ['class' => $class, 'singleton' => $singleton];
	}
public function register ( $ hint , $ class , bool $ singleton = false ) : void { $ this -> hints [ $ this -> parseHint ( $ hint ) ] = [ 'class' => $ class , 'singleton' => $ singleton ] ; }
Register a type hint.

@param string|array    $hint      Type hint or array contaning both type hint and alias
@param string|\Closure $class     Class name or closure
@param bool            $singleton Should we return the same instance every time?
Register a type hint .