protected function findComponentFromStack($name, $stack)
    {
        foreach ($stack['components'] as $componentInfo) {
            if ($componentInfo['name'] == $name) {
                return $componentInfo['obj'];
            }
        }

        return null;
    }
protected function findComponentFromStack($name, $stack)
    {
        foreach ($stack['components'] as $componentInfo) {
            if ($componentInfo['name'] == $name) {
                return $componentInfo['obj'];
            }
        }

        return null;
    }
protected function findComponentFromStack ( $ name , $ stack ) { foreach ( $ stack [ 'components' ] as $ componentInfo ) { if ( $ componentInfo [ 'name' ] == $ name ) { return $ componentInfo [ 'obj' ] ; } } return null ; }
Locates a component by its alias from the supplied stack.
Locates a component by its alias from the supplied stack .