public static function get($abstract)
    {
        if (!isset(self::getInstance()->containers[$abstract])) {
            try {
                $reflect = new ReflectionClass(self::getInstance()->bind[$abstract]);
            } catch (ReflectionException $e) {
                throw new ContainerException('Cannot find "' . $abstract . '" in container');
            }

            self::set($abstract, $reflect->newInstanceArgs([]));
        }

        return self::getInstance()->containers[$abstract];
    }
public static function get($abstract)
    {
        if (!isset(self::getInstance()->containers[$abstract])) {
            try {
                $reflect = new ReflectionClass(self::getInstance()->bind[$abstract]);
            } catch (ReflectionException $e) {
                throw new ContainerException('Cannot find "' . $abstract . '" in container');
            }

            self::set($abstract, $reflect->newInstanceArgs([]));
        }

        return self::getInstance()->containers[$abstract];
    }
public static function get ( $ abstract ) { if ( ! isset ( self :: getInstance ( ) -> containers [ $ abstract ] ) ) { try { $ reflect = new ReflectionClass ( self :: getInstance ( ) -> bind [ $ abstract ] ) ; } catch ( ReflectionException $ e ) { throw new ContainerException ( 'Cannot find "' . $ abstract . '" in container' ) ; } self :: set ( $ abstract , $ reflect -> newInstanceArgs ( [ ] ) ) ; } return self :: getInstance ( ) -> containers [ $ abstract ] ; }
Get the object instance in the container

@param  string $abstract
@return object

@throws \Kotori\Exception\ContainerException
Get the object instance in the container