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
        ]);
    }