public function bootGedmoExtensions($namespaces = ['App'], $all = true)
    {
        if ($all) {
            DoctrineExtensions::registerMappingIntoDriverChainORM(
                $this->chain,
                $this->reader
            );
        } else {
            DoctrineExtensions::registerAbstractMappingIntoDriverChainORM(
                $this->chain,
                $this->reader
            );
        }

        $driver = $this->metadata->getMetadataDriverImpl();
        foreach ($namespaces as $namespace) {
            $this->chain->addDriver($driver, $namespace);
        }
        $this->metadata->setMetadataDriverImpl($this->chain);

        $this->dispatcher->fire('doctrine.driver-chain::booted', [
            $driver,
            $this->chain
        ]);
    }
public function bootGedmoExtensions($namespaces = ['App'], $all = true)
    {
        if ($all) {
            DoctrineExtensions::registerMappingIntoDriverChainORM(
                $this->chain,
                $this->reader
            );
        } else {
            DoctrineExtensions::registerAbstractMappingIntoDriverChainORM(
                $this->chain,
                $this->reader
            );
        }

        $driver = $this->metadata->getMetadataDriverImpl();
        foreach ($namespaces as $namespace) {
            $this->chain->addDriver($driver, $namespace);
        }
        $this->metadata->setMetadataDriverImpl($this->chain);

        $this->dispatcher->fire('doctrine.driver-chain::booted', [
            $driver,
            $this->chain
        ]);
    }
public function bootGedmoExtensions ( $ namespaces = [ 'App' ] , $ all = true ) { if ( $ all ) { DoctrineExtensions :: registerMappingIntoDriverChainORM ( $ this -> chain , $ this -> reader ) ; } else { DoctrineExtensions :: registerAbstractMappingIntoDriverChainORM ( $ this -> chain , $ this -> reader ) ; } $ driver = $ this -> metadata -> getMetadataDriverImpl ( ) ; foreach ( $ namespaces as $ namespace ) { $ this -> chain -> addDriver ( $ driver , $ namespace ) ; } $ this -> metadata -> setMetadataDriverImpl ( $ this -> chain ) ; $ this -> dispatcher -> fire ( 'doctrine.driver-chain::booted' , [ $ driver , $ this -> chain ] ) ; }
Enable Gedmo Doctrine Extensions

@param array $namespaces
@param bool  $all
Enable Gedmo Doctrine Extensions