src/frogsystem/spawn/Container.php
private function retrieve(&$from, $abstract, $args = [])
    {
        // get the entry
        $entry = $from[$abstract];

        // Closures will be invoked with DI and the result returned
        if (is_object($entry) && ($entry instanceof \Closure)) {
            return $this->invoke($entry, $args);
        }

        // return the unchanged value
        return $entry;
    }
private function retrieve(&$from, $abstract, $args = [])
    {
        // get the entry
        $entry = $from[$abstract];

        // Closures will be invoked with DI and the result returned
        if (is_object($entry) && ($entry instanceof \Closure)) {
            return $this->invoke($entry, $args);
        }

        // return the unchanged value
        return $entry;
    }
private function retrieve ( & $ from , $ abstract , $ args = [ ] ) { // get the entry $ entry = $ from [ $ abstract ] ; // Closures will be invoked with DI and the result returned if ( is_object ( $ entry ) && ( $ entry instanceof \ Closure ) ) { return $ this -> invoke ( $ entry , $ args ) ; } // return the unchanged value return $ entry ; }
Helper method to retrieve an existing entry from a given library array.
You have to find sure, that the entry exists in the library.
@param $from
@param string $abstract The abstract to get.
@param array $args
@return mixed The entry.
@internal param $ &array $from The specified library.
Helper method to retrieve an existing entry from a given library array . You have to find sure that the entry exists in the library .