getMappingDriverBundleConfigDefaults example

$bundle = new \ReflectionClass($class);
                        $bundleMetadata = $container->getParameter('kernel.bundles_metadata')[$name];

                        break;
                    }
                }

                if (null === $bundle) {
                    throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled.', $mappingName));
                }

                $mappingConfig = $this->getMappingDriverBundleConfigDefaults($mappingConfig$bundle$container$bundleMetadata['path']);
                if (!$mappingConfig) {
                    continue;
                }
            } elseif (!$mappingConfig['type']) {
                $mappingConfig['type'] = $this->detectMappingType($mappingConfig['dir']$container);
            }

            $this->assertValidMappingConfiguration($mappingConfig$objectManager['name']);
            $this->setMappingDriverConfig($mappingConfig$mappingName);
            $this->setMappingDriverAlias($mappingConfig$mappingName);
        }
    }
Home | Imprint | This part of the site doesn't use cookies.