1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the AntiMattr MongoDB Migrations Bundle, a library by Matthew Fitzgerald. |
||
5 | * |
||
6 | * (c) 2014 Matthew Fitzgerald |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace AntiMattr\Bundle\MongoDBMigrationsBundle\DependencyInjection; |
||
13 | |||
14 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
||
15 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||
16 | |||
17 | /** |
||
18 | * @author Matthew Fitzgerald <[email protected]> |
||
19 | */ |
||
20 | class Configuration implements ConfigurationInterface |
||
21 | { |
||
22 | /** |
||
23 | * Generates the configuration tree. |
||
24 | * |
||
25 | * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The config tree builder |
||
26 | */ |
||
27 | public function getConfigTreeBuilder() |
||
28 | { |
||
29 | $treeBuilder = new TreeBuilder('mongo_db_migrations', 'array'); |
||
30 | $rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('mongo_db_migrations', 'array'); |
||
0 ignored issues
–
show
|
|||
31 | |||
32 | $rootNode |
||
33 | ->children() |
||
34 | ->scalarNode('collection_name')->defaultValue('migration_versions')->cannotBeEmpty()->end() |
||
35 | ->scalarNode('database_name')->cannotBeEmpty()->end() |
||
36 | ->scalarNode('dir_name')->defaultValue('%kernel.root_dir%/MongoDBMigrations')->cannotBeEmpty()->end() |
||
37 | ->scalarNode('name')->defaultValue('Application MongoDB Migrations')->end() |
||
38 | ->scalarNode('namespace')->defaultValue('Application\MongoDBMigrations')->cannotBeEmpty()->end() |
||
39 | ->scalarNode('script_dir_name')->end() |
||
40 | ->end() |
||
41 | ; |
||
42 | |||
43 | return $treeBuilder; |
||
44 | } |
||
45 | } |
||
46 |
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.