1 | <?php |
||
33 | class MigrationsConfigurationFactory extends AbstractFactory |
||
34 | { |
||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | * |
||
38 | * @return \Doctrine\DBAL\Migrations\Configuration\Configuration |
||
39 | */ |
||
40 | 2 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
41 | { |
||
42 | 2 | $name = $this->getName(); |
|
43 | /* @var $connection \Doctrine\DBAL\Connection */ |
||
44 | 2 | $connection = $serviceLocator->get('doctrine.connection.' . $name); |
|
45 | 2 | $appConfig = $serviceLocator->get('Config'); |
|
46 | 2 | $migrationsConfig = $appConfig['doctrine']['migrations_configuration'][$name]; |
|
47 | 2 | $configuration = new Configuration($connection); |
|
48 | |||
49 | 2 | $configuration->setName($migrationsConfig['name']); |
|
50 | 2 | $configuration->setMigrationsDirectory($migrationsConfig['directory']); |
|
51 | 2 | $configuration->setMigrationsNamespace($migrationsConfig['namespace']); |
|
52 | 2 | $configuration->setMigrationsTableName($migrationsConfig['table']); |
|
53 | 2 | $configuration->registerMigrationsFromDirectory($migrationsConfig['directory']); |
|
54 | |||
55 | 2 | if (method_exists($configuration, 'setMigrationsColumnName')) { |
|
56 | $configuration->setMigrationsColumnName($migrationsConfig['column']); |
||
|
|||
57 | } |
||
58 | |||
59 | 2 | return $configuration; |
|
60 | } |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function getOptionsClass() |
||
68 | } |
||
69 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.