src/Container.php
/**
     * Always returns the same container instance.
     *
     * Singleton pattern taken from Stackoverflow ;-)
     * https://stackoverflow.com/questions/203336/creating-the-singleton-design-pattern-in-php5
     *
     * @return \kbATeam\MemoryContainer\Container
     */
Always returns the same container instance.


Always returns the same container instance .
public static function singleton(): Container
    {
        static $instance = null;
        if ($instance === null) {
            $instance = new static();
        }
        return $instance;
    }
public static function singleton ( ) : Container { static $ instance = null ; if ( $ instance === null ) { $ instance = new static ( ) ; } return $ instance ; }
Always returns the same container instance.
Always returns the same container instance .