src/Bundle/AbstractResourceBundle.php
protected function getMappingCompilerPassInfo(string $driverType): array
    {
        switch ($driverType) {
            case SyliusResourceBundle::DRIVER_DOCTRINE_MONGODB_ODM:
                @trigger_error(sprintf(
                    'The "%s" driver is deprecated in Sylius 1.3. Doctrine MongoDB and PHPCR will no longer be supported in Sylius 2.0.',
                    $driverType
                ), \E_USER_DEPRECATED);

                $mappingsPassClassname = DoctrineMongoDBMappingsPass::class;

                break;
            case SyliusResourceBundle::DRIVER_DOCTRINE_ORM:
                $mappingsPassClassname = DoctrineOrmMappingsPass::class;

                break;
            case SyliusResourceBundle::DRIVER_DOCTRINE_PHPCR_ODM:
                @trigger_error(sprintf(
                    'The "%s" driver is deprecated in Sylius 1.3. Doctrine MongoDB and PHPCR will no longer be supported in Sylius 2.0.',
                    $driverType
                ), \E_USER_DEPRECATED);

                $mappingsPassClassname = DoctrinePhpcrMappingsPass::class;

                break;
            default:
                throw new UnknownDriverException($driverType);
        }

        $compilerPassMethod = sprintf('create%sMappingDriver', ucfirst($this->mappingFormat));

        return [$mappingsPassClassname, $compilerPassMethod];
    }
protected function getMappingCompilerPassInfo(string $driverType): array
    {
        switch ($driverType) {
            case SyliusResourceBundle::DRIVER_DOCTRINE_MONGODB_ODM:
                @trigger_error(sprintf(
                    'The "%s" driver is deprecated in Sylius 1.3. Doctrine MongoDB and PHPCR will no longer be supported in Sylius 2.0.',
                    $driverType
                ), \E_USER_DEPRECATED);

                $mappingsPassClassname = DoctrineMongoDBMappingsPass::class;

                break;
            case SyliusResourceBundle::DRIVER_DOCTRINE_ORM:
                $mappingsPassClassname = DoctrineOrmMappingsPass::class;

                break;
            case SyliusResourceBundle::DRIVER_DOCTRINE_PHPCR_ODM:
                @trigger_error(sprintf(
                    'The "%s" driver is deprecated in Sylius 1.3. Doctrine MongoDB and PHPCR will no longer be supported in Sylius 2.0.',
                    $driverType
                ), \E_USER_DEPRECATED);

                $mappingsPassClassname = DoctrinePhpcrMappingsPass::class;

                break;
            default:
                throw new UnknownDriverException($driverType);
        }

        $compilerPassMethod = sprintf('create%sMappingDriver', ucfirst($this->mappingFormat));

        return [$mappingsPassClassname, $compilerPassMethod];
    }
protected function getMappingCompilerPassInfo ( string $ driverType ) : array { switch ( $ driverType ) { case SyliusResourceBundle :: DRIVER_DOCTRINE_MONGODB_ODM : @ trigger_error ( sprintf ( 'The "%s" driver is deprecated in Sylius 1.3. Doctrine MongoDB and PHPCR will no longer be supported in Sylius 2.0.' , $ driverType ) , \ E_USER_DEPRECATED ) ; $ mappingsPassClassname = DoctrineMongoDBMappingsPass :: class ; break ; case SyliusResourceBundle :: DRIVER_DOCTRINE_ORM : $ mappingsPassClassname = DoctrineOrmMappingsPass :: class ; break ; case SyliusResourceBundle :: DRIVER_DOCTRINE_PHPCR_ODM : @ trigger_error ( sprintf ( 'The "%s" driver is deprecated in Sylius 1.3. Doctrine MongoDB and PHPCR will no longer be supported in Sylius 2.0.' , $ driverType ) , \ E_USER_DEPRECATED ) ; $ mappingsPassClassname = DoctrinePhpcrMappingsPass :: class ; break ; default : throw new UnknownDriverException ( $ driverType ) ; } $ compilerPassMethod = sprintf ( 'create%sMappingDriver' , ucfirst ( $ this -> mappingFormat ) ) ; return [ $ mappingsPassClassname , $ compilerPassMethod ] ; }
Return mapping compiler pass class depending on driver.



@throws UnknownDriverException
Return mapping compiler pass class depending on driver .