public function inspect($nameFilter = null, $typeFilter = null)
    {
        $result = [];
        $name   = $nameFilter ? $this->normalizeName($nameFilter) : null;

        if (empty($typeFilter)) {
            $typeFilter = static::I_ALL;
        }

        $types = [
            static::I_BINDINGS  => 'classDefinitions',
            static::I_DELEGATES => 'delegates',
            static::I_PREPARES  => 'prepares',
            static::I_ALIASES   => 'aliases',
            static::I_SHARES    => 'shares',
        ];

        foreach ($types as $type => $source) {
            if ($typeFilter & $type) {
                $result[$type] = $this->filter($this->{$source}, $name);
            }
        }

        return $result;
    }
public function inspect($nameFilter = null, $typeFilter = null)
    {
        $result = [];
        $name   = $nameFilter ? $this->normalizeName($nameFilter) : null;

        if (empty($typeFilter)) {
            $typeFilter = static::I_ALL;
        }

        $types = [
            static::I_BINDINGS  => 'classDefinitions',
            static::I_DELEGATES => 'delegates',
            static::I_PREPARES  => 'prepares',
            static::I_ALIASES   => 'aliases',
            static::I_SHARES    => 'shares',
        ];

        foreach ($types as $type => $source) {
            if ($typeFilter & $type) {
                $result[$type] = $this->filter($this->{$source}, $name);
            }
        }

        return $result;
    }
public function inspect ( $ nameFilter = null , $ typeFilter = null ) { $ result = [ ] ; $ name = $ nameFilter ? $ this -> normalizeName ( $ nameFilter ) : null ; if ( empty ( $ typeFilter ) ) { $ typeFilter = static :: I_ALL ; } $ types = [ static :: I_BINDINGS => 'classDefinitions' , static :: I_DELEGATES => 'delegates' , static :: I_PREPARES => 'prepares' , static :: I_ALIASES => 'aliases' , static :: I_SHARES => 'shares' , ] ; foreach ( $ types as $ type => $ source ) { if ( $ typeFilter & $ type ) { $ result [ $ type ] = $ this -> filter ( $ this -> { $ source } , $ name ) ; } } return $ result ; }
Retrieve stored data for the specified definition type

Exposes introspection of existing binds/delegates/shares/etc for decoration and composition.

@param string $nameFilter An optional class name filter
@param int    $typeFilter A bitmask of Injector::* type constant flags

@return array
Retrieve stored data for the specified definition type