src/mako/syringe/Container.php
public function isSingleton(string $class): bool
	{
		$class = $this->resolveAlias($class);

		return isset($this->instances[$class]) || (isset($this->hints[$class]) && $this->hints[$class]['singleton'] === true);
	}
public function isSingleton(string $class): bool
	{
		$class = $this->resolveAlias($class);

		return isset($this->instances[$class]) || (isset($this->hints[$class]) && $this->hints[$class]['singleton'] === true);
	}
public function isSingleton ( string $ class ) : bool { $ class = $ this -> resolveAlias ( $ class ) ; return isset ( $ this -> instances [ $ class ] ) || ( isset ( $ this -> hints [ $ class ] ) && $ this -> hints [ $ class ] [ 'singleton' ] === true ) ; }
Returns TRUE if a class has been registered as a singleton and FALSE if not.

@param  string $class Class name
@return bool
Returns TRUE if a class has been registered as a singleton and FALSE if not .