These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the ONGR package. |
||
5 | * |
||
6 | * (c) NFQ Technologies UAB <[email protected]> |
||
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 ONGR\FilterManagerBundle; |
||
13 | |||
14 | use ONGR\FilterManagerBundle\DependencyInjection\Compiler\FilterPass; |
||
15 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\ChoiceFilterFactory; |
||
16 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\DateRangeFilterFactory; |
||
17 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\DocumentValueFactory; |
||
18 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\DynamicAggregateFactory; |
||
19 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\FieldValueFactory; |
||
20 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\FuzzyFilterFactory; |
||
21 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\MatchFilterFactory; |
||
22 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\MultiChoiceFilterFactory; |
||
23 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\MultiDynamicAggregateFactory; |
||
24 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\PagerFilterFactory; |
||
25 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\RangeFilterFactory; |
||
26 | use ONGR\FilterManagerBundle\DependencyInjection\Filter\SortFilterFactory; |
||
27 | use ONGR\FilterManagerBundle\DependencyInjection\ONGRFilterManagerExtension; |
||
28 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
29 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
30 | |||
31 | /** |
||
32 | * Class ONGRFilterManagerBundle. |
||
33 | */ |
||
34 | class ONGRFilterManagerBundle extends Bundle |
||
35 | { |
||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function build(ContainerBuilder $container) |
||
40 | { |
||
41 | parent::build($container); |
||
42 | |||
43 | /** @var ONGRFilterManagerExtension $extension */ |
||
44 | $extension = $container->getExtension('ongr_filter_manager'); |
||
45 | $extension->addFilterFactory(new ChoiceFilterFactory()); |
||
0 ignored issues
–
show
|
|||
46 | $extension->addFilterFactory(new MultiChoiceFilterFactory()); |
||
0 ignored issues
–
show
The class
ONGR\FilterManagerBundle...ultiChoiceFilterFactory has been deprecated with message: Filter factories will be deleted in 2.0
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.
Loading history...
|
|||
47 | $extension->addFilterFactory(new MatchFilterFactory()); |
||
0 ignored issues
–
show
The class
ONGR\FilterManagerBundle...lter\MatchFilterFactory has been deprecated with message: Filter factories will be deleted in 2.0
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.
Loading history...
|
|||
48 | $extension->addFilterFactory(new FuzzyFilterFactory()); |
||
0 ignored issues
–
show
The class
ONGR\FilterManagerBundle...lter\FuzzyFilterFactory has been deprecated with message: Filter factories will be deleted in 2.0
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.
Loading history...
|
|||
49 | $extension->addFilterFactory(new SortFilterFactory()); |
||
0 ignored issues
–
show
The class
ONGR\FilterManagerBundle...ilter\SortFilterFactory has been deprecated with message: Filter factories will be deleted in 2.0
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.
Loading history...
|
|||
50 | $extension->addFilterFactory(new PagerFilterFactory()); |
||
0 ignored issues
–
show
The class
ONGR\FilterManagerBundle...lter\PagerFilterFactory has been deprecated with message: Filter factories will be deleted in 2.0
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.
Loading history...
|
|||
51 | $extension->addFilterFactory(new RangeFilterFactory()); |
||
0 ignored issues
–
show
The class
ONGR\FilterManagerBundle...lter\RangeFilterFactory has been deprecated with message: Filter factories will be deleted in 2.0
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.
Loading history...
|
|||
52 | $extension->addFilterFactory(new DateRangeFilterFactory()); |
||
53 | $extension->addFilterFactory(new FieldValueFactory()); |
||
54 | $extension->addFilterFactory(new DocumentValueFactory()); |
||
55 | $extension->addFilterFactory(new DynamicAggregateFactory()); |
||
56 | $extension->addFilterFactory(new MultiDynamicAggregateFactory()); |
||
57 | $extension->addFilterFactory(new DynamicAggregateFactory()); |
||
58 | |||
59 | $container->addCompilerPass(new FilterPass()); |
||
60 | } |
||
61 | } |
||
62 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.