public static function destroyContext(string $name)
    {
        end(static::$injectors);
        if ($name !== key(static::$injectors))
            throw new DIException("Injection context $name is not at top of the stack");

        $injector = array_pop(static::$injectors);
    }
public static function destroyContext(string $name)
    {
        end(static::$injectors);
        if ($name !== key(static::$injectors))
            throw new DIException("Injection context $name is not at top of the stack");

        $injector = array_pop(static::$injectors);
    }
public static function destroyContext ( string $ name ) { end ( static :: $ injectors ) ; if ( $ name !== key ( static :: $ injectors ) ) throw new DIException ( "Injection context $name is not at top of the stack" ) ; $ injector = array_pop ( static :: $ injectors ) ; }
Destroy a context - the injector at the top of the stack
is released.

@param string $name The name of the injection context
@throws DIException When the injection context is not at the top of the stack
Destroy a context - the injector at the top of the stack is released .