protected function applyToExtensions($callback)
    {
        $results = array();
        foreach (new ApplicationBundleIterator($this->kernel) as $bundle) {
            /* @var $bundle BundleInterface */
            $extension = $bundle->getContainerExtension();
            if ($extension !== null) {
                $results[] = call_user_func($callback, $extension);
            }
        }
        return $results;
    }
protected function applyToExtensions($callback)
    {
        $results = array();
        foreach (new ApplicationBundleIterator($this->kernel) as $bundle) {
            /* @var $bundle BundleInterface */
            $extension = $bundle->getContainerExtension();
            if ($extension !== null) {
                $results[] = call_user_func($callback, $extension);
            }
        }
        return $results;
    }
protected function applyToExtensions ( $ callback ) { $ results = array ( ) ; foreach ( new ApplicationBundleIterator ( $ this -> kernel ) as $ bundle ) { /* @var $bundle BundleInterface */ $ extension = $ bundle -> getContainerExtension ( ) ; if ( $ extension !== null ) { $ results [ ] = call_user_func ( $ callback , $ extension ) ; } } return $ results ; }
Applies the given callback to all bundle extensions that are
defined in the application and returns an array with the results
of each call.

@param callable $callback
@return array(mixed)
Applies the given callback to all bundle extensions that are defined in the application and returns an array with the results of each call .