Factory/TableFactory.php
private function findExtensions(&$extensions, $name)
    {
        $extension = $this->getExtension($name);

        // Put deps first
        foreach ((array)$extension->getDependency() as $dep) {
            if (!isset($extensions[$dep])) {
                $this->findExtensions($extensions, $dep);
            }
        }

        $extensions[$name] = $extension;
    }
private function findExtensions(&$extensions, $name)
    {
        $extension = $this->getExtension($name);

        // Put deps first
        foreach ((array)$extension->getDependency() as $dep) {
            if (!isset($extensions[$dep])) {
                $this->findExtensions($extensions, $dep);
            }
        }

        $extensions[$name] = $extension;
    }
private function findExtensions ( & $ extensions , $ name ) { $ extension = $ this -> getExtension ( $ name ) ; // Put deps first foreach ( ( array ) $ extension -> getDependency ( ) as $ dep ) { if ( ! isset ( $ extensions [ $ dep ] ) ) { $ this -> findExtensions ( $ extensions , $ dep ) ; } } $ extensions [ $ name ] = $ extension ; }
Find extnesions recursively

@param $extensions
@param $name
Find extnesions recursively