Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like SymfonyAppTestProjectContainer often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use SymfonyAppTestProjectContainer, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 16 | class SymfonyAppTestProjectContainer extends Container |
||
| 17 | { |
||
| 18 | private $parameters; |
||
| 19 | private $targetDirs = array(); |
||
| 20 | |||
| 21 | /* |
||
| 22 | * Constructor. |
||
| 23 | */ |
||
| 24 | public function __construct() |
||
| 168 | |||
| 169 | /* |
||
| 170 | * {@inheritdoc} |
||
| 171 | */ |
||
| 172 | public function compile() |
||
| 176 | |||
| 177 | /* |
||
| 178 | * {@inheritdoc} |
||
| 179 | */ |
||
| 180 | public function isFrozen() |
||
| 184 | |||
| 185 | /* |
||
| 186 | * Gets the 'alice.processor.entity_managers' service. |
||
| 187 | * |
||
| 188 | * This service is shared. |
||
| 189 | * This method always returns the same instance of the service. |
||
| 190 | * |
||
| 191 | * @return \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor A Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor instance |
||
| 192 | */ |
||
| 193 | protected function getAlice_Processor_EntityManagersService() |
||
| 197 | |||
| 198 | /* |
||
| 199 | * Gets the 'annotation_reader' service. |
||
| 200 | * |
||
| 201 | * This service is shared. |
||
| 202 | * This method always returns the same instance of the service. |
||
| 203 | * |
||
| 204 | * @return \Doctrine\Common\Annotations\CachedReader A Doctrine\Common\Annotations\CachedReader instance |
||
| 205 | */ |
||
| 206 | protected function getAnnotationReaderService() |
||
| 210 | |||
| 211 | /* |
||
| 212 | * Gets the 'cache.app' service. |
||
| 213 | * |
||
| 214 | * This service is shared. |
||
| 215 | * This method always returns the same instance of the service. |
||
| 216 | * |
||
| 217 | * @return \Symfony\Component\Cache\Adapter\FilesystemAdapter A Symfony\Component\Cache\Adapter\FilesystemAdapter instance |
||
| 218 | */ |
||
| 219 | protected function getCache_AppService() |
||
| 223 | |||
| 224 | /* |
||
| 225 | * Gets the 'cache.default_redis_provider' service. |
||
| 226 | * |
||
| 227 | * This service is shared. |
||
| 228 | * This method always returns the same instance of the service. |
||
| 229 | * |
||
| 230 | * @return \Redis A Redis instance |
||
| 231 | */ |
||
| 232 | protected function getCache_DefaultRedisProviderService() |
||
| 236 | |||
| 237 | /* |
||
| 238 | * Gets the 'cache.system' service. |
||
| 239 | * |
||
| 240 | * This service is shared. |
||
| 241 | * This method always returns the same instance of the service. |
||
| 242 | * |
||
| 243 | * @return \Symfony\Component\Cache\Adapter\AdapterInterface A Symfony\Component\Cache\Adapter\AdapterInterface instance |
||
| 244 | */ |
||
| 245 | protected function getCache_SystemService() |
||
| 249 | |||
| 250 | /* |
||
| 251 | * Gets the 'cache_clearer' service. |
||
| 252 | * |
||
| 253 | * This service is shared. |
||
| 254 | * This method always returns the same instance of the service. |
||
| 255 | * |
||
| 256 | * @return \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer A Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer instance |
||
| 257 | */ |
||
| 258 | protected function getCacheClearerService() |
||
| 268 | |||
| 269 | /* |
||
| 270 | * Gets the 'cache_warmer' service. |
||
| 271 | * |
||
| 272 | * This service is shared. |
||
| 273 | * This method always returns the same instance of the service. |
||
| 274 | * |
||
| 275 | * @return \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate A Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate instance |
||
| 276 | */ |
||
| 277 | protected function getCacheWarmerService() |
||
| 281 | |||
| 282 | /* |
||
| 283 | * Gets the 'config_cache_factory' service. |
||
| 284 | * |
||
| 285 | * This service is shared. |
||
| 286 | * This method always returns the same instance of the service. |
||
| 287 | * |
||
| 288 | * @return \Symfony\Component\Config\ResourceCheckerConfigCacheFactory A Symfony\Component\Config\ResourceCheckerConfigCacheFactory instance |
||
| 289 | */ |
||
| 290 | protected function getConfigCacheFactoryService() |
||
| 294 | |||
| 295 | /* |
||
| 296 | * Gets the 'debug.debug_handlers_listener' service. |
||
| 297 | * |
||
| 298 | * This service is shared. |
||
| 299 | * This method always returns the same instance of the service. |
||
| 300 | * |
||
| 301 | * @return \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener A Symfony\Component\HttpKernel\EventListener\DebugHandlersListener instance |
||
| 302 | */ |
||
| 303 | protected function getDebug_DebugHandlersListenerService() |
||
| 307 | |||
| 308 | /* |
||
| 309 | * Gets the 'debug.stopwatch' service. |
||
| 310 | * |
||
| 311 | * This service is shared. |
||
| 312 | * This method always returns the same instance of the service. |
||
| 313 | * |
||
| 314 | * @return \Symfony\Component\Stopwatch\Stopwatch A Symfony\Component\Stopwatch\Stopwatch instance |
||
| 315 | */ |
||
| 316 | protected function getDebug_StopwatchService() |
||
| 320 | |||
| 321 | /* |
||
| 322 | * Gets the 'event_dispatcher' service. |
||
| 323 | * |
||
| 324 | * This service is shared. |
||
| 325 | * This method always returns the same instance of the service. |
||
| 326 | * |
||
| 327 | * @return \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher A Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher instance |
||
| 328 | */ |
||
| 329 | View Code Duplication | protected function getEventDispatcherService() |
|
| 346 | |||
| 347 | /* |
||
| 348 | * Gets the 'faker.provider.foo' service. |
||
| 349 | * |
||
| 350 | * This service is shared. |
||
| 351 | * This method always returns the same instance of the service. |
||
| 352 | * |
||
| 353 | * @return \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider A Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider instance |
||
| 354 | */ |
||
| 355 | protected function getFaker_Provider_FooService() |
||
| 359 | |||
| 360 | /* |
||
| 361 | * Gets the 'file_locator' service. |
||
| 362 | * |
||
| 363 | * This service is shared. |
||
| 364 | * This method always returns the same instance of the service. |
||
| 365 | * |
||
| 366 | * @return \Symfony\Component\HttpKernel\Config\FileLocator A Symfony\Component\HttpKernel\Config\FileLocator instance |
||
| 367 | */ |
||
| 368 | protected function getFileLocatorService() |
||
| 372 | |||
| 373 | /* |
||
| 374 | * Gets the 'filesystem' service. |
||
| 375 | * |
||
| 376 | * This service is shared. |
||
| 377 | * This method always returns the same instance of the service. |
||
| 378 | * |
||
| 379 | * @return \Symfony\Component\Filesystem\Filesystem A Symfony\Component\Filesystem\Filesystem instance |
||
| 380 | */ |
||
| 381 | protected function getFilesystemService() |
||
| 385 | |||
| 386 | /* |
||
| 387 | * Gets the 'form.factory' service. |
||
| 388 | * |
||
| 389 | * This service is shared. |
||
| 390 | * This method always returns the same instance of the service. |
||
| 391 | * |
||
| 392 | * @return \Symfony\Component\Form\FormFactory A Symfony\Component\Form\FormFactory instance |
||
| 393 | */ |
||
| 394 | protected function getForm_FactoryService() |
||
| 398 | |||
| 399 | /* |
||
| 400 | * Gets the 'form.registry' service. |
||
| 401 | * |
||
| 402 | * This service is shared. |
||
| 403 | * This method always returns the same instance of the service. |
||
| 404 | * |
||
| 405 | * @return \Symfony\Component\Form\FormRegistry A Symfony\Component\Form\FormRegistry instance |
||
| 406 | */ |
||
| 407 | protected function getForm_RegistryService() |
||
| 411 | |||
| 412 | /* |
||
| 413 | * Gets the 'form.resolved_type_factory' service. |
||
| 414 | * |
||
| 415 | * This service is shared. |
||
| 416 | * This method always returns the same instance of the service. |
||
| 417 | * |
||
| 418 | * @return \Symfony\Component\Form\ResolvedFormTypeFactory A Symfony\Component\Form\ResolvedFormTypeFactory instance |
||
| 419 | */ |
||
| 420 | protected function getForm_ResolvedTypeFactoryService() |
||
| 424 | |||
| 425 | /* |
||
| 426 | * Gets the 'form.type.birthday' service. |
||
| 427 | * |
||
| 428 | * This service is shared. |
||
| 429 | * This method always returns the same instance of the service. |
||
| 430 | * |
||
| 431 | * @return \Symfony\Component\Form\Extension\Core\Type\BirthdayType A Symfony\Component\Form\Extension\Core\Type\BirthdayType instance |
||
| 432 | * |
||
| 433 | * @deprecated The "form.type.birthday" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 434 | */ |
||
| 435 | protected function getForm_Type_BirthdayService() |
||
| 441 | |||
| 442 | /* |
||
| 443 | * Gets the 'form.type.button' service. |
||
| 444 | * |
||
| 445 | * This service is shared. |
||
| 446 | * This method always returns the same instance of the service. |
||
| 447 | * |
||
| 448 | * @return \Symfony\Component\Form\Extension\Core\Type\ButtonType A Symfony\Component\Form\Extension\Core\Type\ButtonType instance |
||
| 449 | * |
||
| 450 | * @deprecated The "form.type.button" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 451 | */ |
||
| 452 | protected function getForm_Type_ButtonService() |
||
| 458 | |||
| 459 | /* |
||
| 460 | * Gets the 'form.type.checkbox' service. |
||
| 461 | * |
||
| 462 | * This service is shared. |
||
| 463 | * This method always returns the same instance of the service. |
||
| 464 | * |
||
| 465 | * @return \Symfony\Component\Form\Extension\Core\Type\CheckboxType A Symfony\Component\Form\Extension\Core\Type\CheckboxType instance |
||
| 466 | * |
||
| 467 | * @deprecated The "form.type.checkbox" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 468 | */ |
||
| 469 | protected function getForm_Type_CheckboxService() |
||
| 475 | |||
| 476 | /* |
||
| 477 | * Gets the 'form.type.choice' service. |
||
| 478 | * |
||
| 479 | * This service is shared. |
||
| 480 | * This method always returns the same instance of the service. |
||
| 481 | * |
||
| 482 | * @return \Symfony\Component\Form\Extension\Core\Type\ChoiceType A Symfony\Component\Form\Extension\Core\Type\ChoiceType instance |
||
| 483 | */ |
||
| 484 | protected function getForm_Type_ChoiceService() |
||
| 488 | |||
| 489 | /* |
||
| 490 | * Gets the 'form.type.collection' service. |
||
| 491 | * |
||
| 492 | * This service is shared. |
||
| 493 | * This method always returns the same instance of the service. |
||
| 494 | * |
||
| 495 | * @return \Symfony\Component\Form\Extension\Core\Type\CollectionType A Symfony\Component\Form\Extension\Core\Type\CollectionType instance |
||
| 496 | * |
||
| 497 | * @deprecated The "form.type.collection" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 498 | */ |
||
| 499 | protected function getForm_Type_CollectionService() |
||
| 505 | |||
| 506 | /* |
||
| 507 | * Gets the 'form.type.country' service. |
||
| 508 | * |
||
| 509 | * This service is shared. |
||
| 510 | * This method always returns the same instance of the service. |
||
| 511 | * |
||
| 512 | * @return \Symfony\Component\Form\Extension\Core\Type\CountryType A Symfony\Component\Form\Extension\Core\Type\CountryType instance |
||
| 513 | * |
||
| 514 | * @deprecated The "form.type.country" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 515 | */ |
||
| 516 | protected function getForm_Type_CountryService() |
||
| 522 | |||
| 523 | /* |
||
| 524 | * Gets the 'form.type.currency' service. |
||
| 525 | * |
||
| 526 | * This service is shared. |
||
| 527 | * This method always returns the same instance of the service. |
||
| 528 | * |
||
| 529 | * @return \Symfony\Component\Form\Extension\Core\Type\CurrencyType A Symfony\Component\Form\Extension\Core\Type\CurrencyType instance |
||
| 530 | * |
||
| 531 | * @deprecated The "form.type.currency" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 532 | */ |
||
| 533 | protected function getForm_Type_CurrencyService() |
||
| 539 | |||
| 540 | /* |
||
| 541 | * Gets the 'form.type.date' service. |
||
| 542 | * |
||
| 543 | * This service is shared. |
||
| 544 | * This method always returns the same instance of the service. |
||
| 545 | * |
||
| 546 | * @return \Symfony\Component\Form\Extension\Core\Type\DateType A Symfony\Component\Form\Extension\Core\Type\DateType instance |
||
| 547 | * |
||
| 548 | * @deprecated The "form.type.date" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 549 | */ |
||
| 550 | protected function getForm_Type_DateService() |
||
| 556 | |||
| 557 | /* |
||
| 558 | * Gets the 'form.type.datetime' service. |
||
| 559 | * |
||
| 560 | * This service is shared. |
||
| 561 | * This method always returns the same instance of the service. |
||
| 562 | * |
||
| 563 | * @return \Symfony\Component\Form\Extension\Core\Type\DateTimeType A Symfony\Component\Form\Extension\Core\Type\DateTimeType instance |
||
| 564 | * |
||
| 565 | * @deprecated The "form.type.datetime" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 566 | */ |
||
| 567 | protected function getForm_Type_DatetimeService() |
||
| 573 | |||
| 574 | /* |
||
| 575 | * Gets the 'form.type.email' service. |
||
| 576 | * |
||
| 577 | * This service is shared. |
||
| 578 | * This method always returns the same instance of the service. |
||
| 579 | * |
||
| 580 | * @return \Symfony\Component\Form\Extension\Core\Type\EmailType A Symfony\Component\Form\Extension\Core\Type\EmailType instance |
||
| 581 | * |
||
| 582 | * @deprecated The "form.type.email" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 583 | */ |
||
| 584 | protected function getForm_Type_EmailService() |
||
| 590 | |||
| 591 | /* |
||
| 592 | * Gets the 'form.type.file' service. |
||
| 593 | * |
||
| 594 | * This service is shared. |
||
| 595 | * This method always returns the same instance of the service. |
||
| 596 | * |
||
| 597 | * @return \Symfony\Component\Form\Extension\Core\Type\FileType A Symfony\Component\Form\Extension\Core\Type\FileType instance |
||
| 598 | * |
||
| 599 | * @deprecated The "form.type.file" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 600 | */ |
||
| 601 | protected function getForm_Type_FileService() |
||
| 607 | |||
| 608 | /* |
||
| 609 | * Gets the 'form.type.form' service. |
||
| 610 | * |
||
| 611 | * This service is shared. |
||
| 612 | * This method always returns the same instance of the service. |
||
| 613 | * |
||
| 614 | * @return \Symfony\Component\Form\Extension\Core\Type\FormType A Symfony\Component\Form\Extension\Core\Type\FormType instance |
||
| 615 | */ |
||
| 616 | protected function getForm_Type_FormService() |
||
| 620 | |||
| 621 | /* |
||
| 622 | * Gets the 'form.type.hidden' service. |
||
| 623 | * |
||
| 624 | * This service is shared. |
||
| 625 | * This method always returns the same instance of the service. |
||
| 626 | * |
||
| 627 | * @return \Symfony\Component\Form\Extension\Core\Type\HiddenType A Symfony\Component\Form\Extension\Core\Type\HiddenType instance |
||
| 628 | * |
||
| 629 | * @deprecated The "form.type.hidden" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 630 | */ |
||
| 631 | protected function getForm_Type_HiddenService() |
||
| 637 | |||
| 638 | /* |
||
| 639 | * Gets the 'form.type.integer' service. |
||
| 640 | * |
||
| 641 | * This service is shared. |
||
| 642 | * This method always returns the same instance of the service. |
||
| 643 | * |
||
| 644 | * @return \Symfony\Component\Form\Extension\Core\Type\IntegerType A Symfony\Component\Form\Extension\Core\Type\IntegerType instance |
||
| 645 | * |
||
| 646 | * @deprecated The "form.type.integer" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 647 | */ |
||
| 648 | protected function getForm_Type_IntegerService() |
||
| 654 | |||
| 655 | /* |
||
| 656 | * Gets the 'form.type.language' service. |
||
| 657 | * |
||
| 658 | * This service is shared. |
||
| 659 | * This method always returns the same instance of the service. |
||
| 660 | * |
||
| 661 | * @return \Symfony\Component\Form\Extension\Core\Type\LanguageType A Symfony\Component\Form\Extension\Core\Type\LanguageType instance |
||
| 662 | * |
||
| 663 | * @deprecated The "form.type.language" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 664 | */ |
||
| 665 | protected function getForm_Type_LanguageService() |
||
| 671 | |||
| 672 | /* |
||
| 673 | * Gets the 'form.type.locale' service. |
||
| 674 | * |
||
| 675 | * This service is shared. |
||
| 676 | * This method always returns the same instance of the service. |
||
| 677 | * |
||
| 678 | * @return \Symfony\Component\Form\Extension\Core\Type\LocaleType A Symfony\Component\Form\Extension\Core\Type\LocaleType instance |
||
| 679 | * |
||
| 680 | * @deprecated The "form.type.locale" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 681 | */ |
||
| 682 | protected function getForm_Type_LocaleService() |
||
| 688 | |||
| 689 | /* |
||
| 690 | * Gets the 'form.type.money' service. |
||
| 691 | * |
||
| 692 | * This service is shared. |
||
| 693 | * This method always returns the same instance of the service. |
||
| 694 | * |
||
| 695 | * @return \Symfony\Component\Form\Extension\Core\Type\MoneyType A Symfony\Component\Form\Extension\Core\Type\MoneyType instance |
||
| 696 | * |
||
| 697 | * @deprecated The "form.type.money" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 698 | */ |
||
| 699 | protected function getForm_Type_MoneyService() |
||
| 705 | |||
| 706 | /* |
||
| 707 | * Gets the 'form.type.number' service. |
||
| 708 | * |
||
| 709 | * This service is shared. |
||
| 710 | * This method always returns the same instance of the service. |
||
| 711 | * |
||
| 712 | * @return \Symfony\Component\Form\Extension\Core\Type\NumberType A Symfony\Component\Form\Extension\Core\Type\NumberType instance |
||
| 713 | * |
||
| 714 | * @deprecated The "form.type.number" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 715 | */ |
||
| 716 | protected function getForm_Type_NumberService() |
||
| 722 | |||
| 723 | /* |
||
| 724 | * Gets the 'form.type.password' service. |
||
| 725 | * |
||
| 726 | * This service is shared. |
||
| 727 | * This method always returns the same instance of the service. |
||
| 728 | * |
||
| 729 | * @return \Symfony\Component\Form\Extension\Core\Type\PasswordType A Symfony\Component\Form\Extension\Core\Type\PasswordType instance |
||
| 730 | * |
||
| 731 | * @deprecated The "form.type.password" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 732 | */ |
||
| 733 | protected function getForm_Type_PasswordService() |
||
| 739 | |||
| 740 | /* |
||
| 741 | * Gets the 'form.type.percent' service. |
||
| 742 | * |
||
| 743 | * This service is shared. |
||
| 744 | * This method always returns the same instance of the service. |
||
| 745 | * |
||
| 746 | * @return \Symfony\Component\Form\Extension\Core\Type\PercentType A Symfony\Component\Form\Extension\Core\Type\PercentType instance |
||
| 747 | * |
||
| 748 | * @deprecated The "form.type.percent" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 749 | */ |
||
| 750 | protected function getForm_Type_PercentService() |
||
| 756 | |||
| 757 | /* |
||
| 758 | * Gets the 'form.type.radio' service. |
||
| 759 | * |
||
| 760 | * This service is shared. |
||
| 761 | * This method always returns the same instance of the service. |
||
| 762 | * |
||
| 763 | * @return \Symfony\Component\Form\Extension\Core\Type\RadioType A Symfony\Component\Form\Extension\Core\Type\RadioType instance |
||
| 764 | * |
||
| 765 | * @deprecated The "form.type.radio" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 766 | */ |
||
| 767 | protected function getForm_Type_RadioService() |
||
| 773 | |||
| 774 | /* |
||
| 775 | * Gets the 'form.type.range' service. |
||
| 776 | * |
||
| 777 | * This service is shared. |
||
| 778 | * This method always returns the same instance of the service. |
||
| 779 | * |
||
| 780 | * @return \Symfony\Component\Form\Extension\Core\Type\RangeType A Symfony\Component\Form\Extension\Core\Type\RangeType instance |
||
| 781 | * |
||
| 782 | * @deprecated The "form.type.range" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 783 | */ |
||
| 784 | protected function getForm_Type_RangeService() |
||
| 790 | |||
| 791 | /* |
||
| 792 | * Gets the 'form.type.repeated' service. |
||
| 793 | * |
||
| 794 | * This service is shared. |
||
| 795 | * This method always returns the same instance of the service. |
||
| 796 | * |
||
| 797 | * @return \Symfony\Component\Form\Extension\Core\Type\RepeatedType A Symfony\Component\Form\Extension\Core\Type\RepeatedType instance |
||
| 798 | * |
||
| 799 | * @deprecated The "form.type.repeated" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 800 | */ |
||
| 801 | protected function getForm_Type_RepeatedService() |
||
| 807 | |||
| 808 | /* |
||
| 809 | * Gets the 'form.type.reset' service. |
||
| 810 | * |
||
| 811 | * This service is shared. |
||
| 812 | * This method always returns the same instance of the service. |
||
| 813 | * |
||
| 814 | * @return \Symfony\Component\Form\Extension\Core\Type\ResetType A Symfony\Component\Form\Extension\Core\Type\ResetType instance |
||
| 815 | * |
||
| 816 | * @deprecated The "form.type.reset" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 817 | */ |
||
| 818 | protected function getForm_Type_ResetService() |
||
| 824 | |||
| 825 | /* |
||
| 826 | * Gets the 'form.type.search' service. |
||
| 827 | * |
||
| 828 | * This service is shared. |
||
| 829 | * This method always returns the same instance of the service. |
||
| 830 | * |
||
| 831 | * @return \Symfony\Component\Form\Extension\Core\Type\SearchType A Symfony\Component\Form\Extension\Core\Type\SearchType instance |
||
| 832 | * |
||
| 833 | * @deprecated The "form.type.search" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 834 | */ |
||
| 835 | protected function getForm_Type_SearchService() |
||
| 841 | |||
| 842 | /* |
||
| 843 | * Gets the 'form.type.submit' service. |
||
| 844 | * |
||
| 845 | * This service is shared. |
||
| 846 | * This method always returns the same instance of the service. |
||
| 847 | * |
||
| 848 | * @return \Symfony\Component\Form\Extension\Core\Type\SubmitType A Symfony\Component\Form\Extension\Core\Type\SubmitType instance |
||
| 849 | * |
||
| 850 | * @deprecated The "form.type.submit" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 851 | */ |
||
| 852 | protected function getForm_Type_SubmitService() |
||
| 858 | |||
| 859 | /* |
||
| 860 | * Gets the 'form.type.text' service. |
||
| 861 | * |
||
| 862 | * This service is shared. |
||
| 863 | * This method always returns the same instance of the service. |
||
| 864 | * |
||
| 865 | * @return \Symfony\Component\Form\Extension\Core\Type\TextType A Symfony\Component\Form\Extension\Core\Type\TextType instance |
||
| 866 | * |
||
| 867 | * @deprecated The "form.type.text" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 868 | */ |
||
| 869 | protected function getForm_Type_TextService() |
||
| 875 | |||
| 876 | /* |
||
| 877 | * Gets the 'form.type.textarea' service. |
||
| 878 | * |
||
| 879 | * This service is shared. |
||
| 880 | * This method always returns the same instance of the service. |
||
| 881 | * |
||
| 882 | * @return \Symfony\Component\Form\Extension\Core\Type\TextareaType A Symfony\Component\Form\Extension\Core\Type\TextareaType instance |
||
| 883 | * |
||
| 884 | * @deprecated The "form.type.textarea" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 885 | */ |
||
| 886 | protected function getForm_Type_TextareaService() |
||
| 892 | |||
| 893 | /* |
||
| 894 | * Gets the 'form.type.time' service. |
||
| 895 | * |
||
| 896 | * This service is shared. |
||
| 897 | * This method always returns the same instance of the service. |
||
| 898 | * |
||
| 899 | * @return \Symfony\Component\Form\Extension\Core\Type\TimeType A Symfony\Component\Form\Extension\Core\Type\TimeType instance |
||
| 900 | * |
||
| 901 | * @deprecated The "form.type.time" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 902 | */ |
||
| 903 | protected function getForm_Type_TimeService() |
||
| 909 | |||
| 910 | /* |
||
| 911 | * Gets the 'form.type.timezone' service. |
||
| 912 | * |
||
| 913 | * This service is shared. |
||
| 914 | * This method always returns the same instance of the service. |
||
| 915 | * |
||
| 916 | * @return \Symfony\Component\Form\Extension\Core\Type\TimezoneType A Symfony\Component\Form\Extension\Core\Type\TimezoneType instance |
||
| 917 | * |
||
| 918 | * @deprecated The "form.type.timezone" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 919 | */ |
||
| 920 | protected function getForm_Type_TimezoneService() |
||
| 926 | |||
| 927 | /* |
||
| 928 | * Gets the 'form.type.url' service. |
||
| 929 | * |
||
| 930 | * This service is shared. |
||
| 931 | * This method always returns the same instance of the service. |
||
| 932 | * |
||
| 933 | * @return \Symfony\Component\Form\Extension\Core\Type\UrlType A Symfony\Component\Form\Extension\Core\Type\UrlType instance |
||
| 934 | * |
||
| 935 | * @deprecated The "form.type.url" service is deprecated since Symfony 3.1 and will be removed in 4.0. |
||
| 936 | */ |
||
| 937 | protected function getForm_Type_UrlService() |
||
| 943 | |||
| 944 | /* |
||
| 945 | * Gets the 'form.type_extension.form.http_foundation' service. |
||
| 946 | * |
||
| 947 | * This service is shared. |
||
| 948 | * This method always returns the same instance of the service. |
||
| 949 | * |
||
| 950 | * @return \Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension A Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension instance |
||
| 951 | */ |
||
| 952 | protected function getForm_TypeExtension_Form_HttpFoundationService() |
||
| 956 | |||
| 957 | /* |
||
| 958 | * Gets the 'form.type_extension.form.validator' service. |
||
| 959 | * |
||
| 960 | * This service is shared. |
||
| 961 | * This method always returns the same instance of the service. |
||
| 962 | * |
||
| 963 | * @return \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension instance |
||
| 964 | */ |
||
| 965 | protected function getForm_TypeExtension_Form_ValidatorService() |
||
| 969 | |||
| 970 | /* |
||
| 971 | * Gets the 'form.type_extension.repeated.validator' service. |
||
| 972 | * |
||
| 973 | * This service is shared. |
||
| 974 | * This method always returns the same instance of the service. |
||
| 975 | * |
||
| 976 | * @return \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension instance |
||
| 977 | */ |
||
| 978 | protected function getForm_TypeExtension_Repeated_ValidatorService() |
||
| 982 | |||
| 983 | /* |
||
| 984 | * Gets the 'form.type_extension.submit.validator' service. |
||
| 985 | * |
||
| 986 | * This service is shared. |
||
| 987 | * This method always returns the same instance of the service. |
||
| 988 | * |
||
| 989 | * @return \Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension instance |
||
| 990 | */ |
||
| 991 | protected function getForm_TypeExtension_Submit_ValidatorService() |
||
| 995 | |||
| 996 | /* |
||
| 997 | * Gets the 'form.type_extension.upload.validator' service. |
||
| 998 | * |
||
| 999 | * This service is shared. |
||
| 1000 | * This method always returns the same instance of the service. |
||
| 1001 | * |
||
| 1002 | * @return \Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension instance |
||
| 1003 | */ |
||
| 1004 | protected function getForm_TypeExtension_Upload_ValidatorService() |
||
| 1008 | |||
| 1009 | /* |
||
| 1010 | * Gets the 'form.type_guesser.validator' service. |
||
| 1011 | * |
||
| 1012 | * This service is shared. |
||
| 1013 | * This method always returns the same instance of the service. |
||
| 1014 | * |
||
| 1015 | * @return \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser A Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser instance |
||
| 1016 | */ |
||
| 1017 | protected function getForm_TypeGuesser_ValidatorService() |
||
| 1021 | |||
| 1022 | /* |
||
| 1023 | * Gets the 'fragment.handler' service. |
||
| 1024 | * |
||
| 1025 | * This service is shared. |
||
| 1026 | * This method always returns the same instance of the service. |
||
| 1027 | * |
||
| 1028 | * @return \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler A Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler instance |
||
| 1029 | */ |
||
| 1030 | View Code Duplication | protected function getFragment_HandlerService() |
|
| 1040 | |||
| 1041 | /* |
||
| 1042 | * Gets the 'fragment.renderer.esi' service. |
||
| 1043 | * |
||
| 1044 | * This service is shared. |
||
| 1045 | * This method always returns the same instance of the service. |
||
| 1046 | * |
||
| 1047 | * @return \Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer instance |
||
| 1048 | */ |
||
| 1049 | View Code Duplication | protected function getFragment_Renderer_EsiService() |
|
| 1057 | |||
| 1058 | /* |
||
| 1059 | * Gets the 'fragment.renderer.hinclude' service. |
||
| 1060 | * |
||
| 1061 | * This service is shared. |
||
| 1062 | * This method always returns the same instance of the service. |
||
| 1063 | * |
||
| 1064 | * @return \Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer A Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer instance |
||
| 1065 | */ |
||
| 1066 | View Code Duplication | protected function getFragment_Renderer_HincludeService() |
|
| 1074 | |||
| 1075 | /* |
||
| 1076 | * Gets the 'fragment.renderer.inline' service. |
||
| 1077 | * |
||
| 1078 | * This service is shared. |
||
| 1079 | * This method always returns the same instance of the service. |
||
| 1080 | * |
||
| 1081 | * @return \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer A Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer instance |
||
| 1082 | */ |
||
| 1083 | View Code Duplication | protected function getFragment_Renderer_InlineService() |
|
| 1091 | |||
| 1092 | /* |
||
| 1093 | * Gets the 'fragment.renderer.ssi' service. |
||
| 1094 | * |
||
| 1095 | * This service is shared. |
||
| 1096 | * This method always returns the same instance of the service. |
||
| 1097 | * |
||
| 1098 | * @return \Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer instance |
||
| 1099 | */ |
||
| 1100 | View Code Duplication | protected function getFragment_Renderer_SsiService() |
|
| 1108 | |||
| 1109 | /* |
||
| 1110 | * Gets the 'hautelook_alice.alice.fixtures.loader' service. |
||
| 1111 | * |
||
| 1112 | * This service is shared. |
||
| 1113 | * This method always returns the same instance of the service. |
||
| 1114 | * |
||
| 1115 | * @return \Hautelook\AliceBundle\Alice\DataFixtures\Fixtures\SimpleLoader A Hautelook\AliceBundle\Alice\DataFixtures\Fixtures\SimpleLoader instance |
||
| 1116 | */ |
||
| 1117 | protected function getHautelookAlice_Alice_Fixtures_LoaderService() |
||
| 1121 | |||
| 1122 | /* |
||
| 1123 | * Gets the 'hautelook_alice.alice.processor_chain' service. |
||
| 1124 | * |
||
| 1125 | * This service is shared. |
||
| 1126 | * This method always returns the same instance of the service. |
||
| 1127 | * |
||
| 1128 | * @param bool $lazyLoad whether to try lazy-loading the service with a proxy |
||
| 1129 | * |
||
| 1130 | * @return \Hautelook\AliceBundle\Alice\ProcessorChain A Hautelook\AliceBundle\Alice\ProcessorChain instance |
||
| 1131 | */ |
||
| 1132 | protected function getHautelookAlice_Alice_ProcessorChainService($lazyLoad = true) |
||
| 1136 | |||
| 1137 | /* |
||
| 1138 | * Gets the 'hautelook_alice.bundle_resolver' service. |
||
| 1139 | * |
||
| 1140 | * This service is shared. |
||
| 1141 | * This method always returns the same instance of the service. |
||
| 1142 | * |
||
| 1143 | * @return \Hautelook\AliceBundle\Resolver\SimpleBundleResolver A Hautelook\AliceBundle\Resolver\SimpleBundleResolver instance |
||
| 1144 | */ |
||
| 1145 | protected function getHautelookAlice_BundleResolverService() |
||
| 1149 | |||
| 1150 | /* |
||
| 1151 | * Gets the 'hautelook_alice.doctrine.command_factory' service. |
||
| 1152 | * |
||
| 1153 | * This service is shared. |
||
| 1154 | * This method always returns the same instance of the service. |
||
| 1155 | * |
||
| 1156 | * @param bool $lazyLoad whether to try lazy-loading the service with a proxy |
||
| 1157 | * |
||
| 1158 | * @return \Hautelook\AliceBundle\Doctrine\Command\CommandFactory A Hautelook\AliceBundle\Doctrine\Command\CommandFactory instance |
||
| 1159 | */ |
||
| 1160 | protected function getHautelookAlice_Doctrine_CommandFactoryService($lazyLoad = true) |
||
| 1164 | |||
| 1165 | /* |
||
| 1166 | * Gets the 'hautelook_alice.doctrine.executor.fixtures_executor' service. |
||
| 1167 | * |
||
| 1168 | * This service is shared. |
||
| 1169 | * This method always returns the same instance of the service. |
||
| 1170 | * |
||
| 1171 | * @param bool $lazyLoad whether to try lazy-loading the service with a proxy |
||
| 1172 | * |
||
| 1173 | * @return \Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor A Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor instance |
||
| 1174 | */ |
||
| 1175 | protected function getHautelookAlice_Doctrine_Executor_FixturesExecutorService($lazyLoad = true) |
||
| 1179 | |||
| 1180 | /* |
||
| 1181 | * Gets the 'hautelook_alice.faker' service. |
||
| 1182 | * |
||
| 1183 | * This service is shared. |
||
| 1184 | * This method always returns the same instance of the service. |
||
| 1185 | * |
||
| 1186 | * @param bool $lazyLoad whether to try lazy-loading the service with a proxy |
||
| 1187 | * |
||
| 1188 | * @return \Faker\Generator A Faker\Generator instance |
||
| 1189 | */ |
||
| 1190 | View Code Duplication | protected function getHautelookAlice_FakerService($lazyLoad = true) |
|
| 1199 | |||
| 1200 | /* |
||
| 1201 | * Gets the 'hautelook_alice.faker.provider_chain' service. |
||
| 1202 | * |
||
| 1203 | * This service is shared. |
||
| 1204 | * This method always returns the same instance of the service. |
||
| 1205 | * |
||
| 1206 | * @param bool $lazyLoad whether to try lazy-loading the service with a proxy |
||
| 1207 | * |
||
| 1208 | * @return \Hautelook\AliceBundle\Faker\Provider\ProviderChain A Hautelook\AliceBundle\Faker\Provider\ProviderChain instance |
||
| 1209 | */ |
||
| 1210 | protected function getHautelookAlice_Faker_ProviderChainService($lazyLoad = true) |
||
| 1214 | |||
| 1215 | /* |
||
| 1216 | * Gets the 'hautelook_alice.fixtures.loader' service. |
||
| 1217 | * |
||
| 1218 | * This service is shared. |
||
| 1219 | * This method always returns the same instance of the service. |
||
| 1220 | * |
||
| 1221 | * @return \Hautelook\AliceBundle\Alice\DataFixtures\SimpleLoader\SimpleLoader A Hautelook\AliceBundle\Alice\DataFixtures\SimpleLoader\SimpleLoader instance |
||
| 1222 | */ |
||
| 1223 | protected function getHautelookAlice_Fixtures_LoaderService() |
||
| 1227 | |||
| 1228 | /* |
||
| 1229 | * Gets the 'http_kernel' service. |
||
| 1230 | * |
||
| 1231 | * This service is shared. |
||
| 1232 | * This method always returns the same instance of the service. |
||
| 1233 | * |
||
| 1234 | * @return \Symfony\Component\HttpKernel\HttpKernel A Symfony\Component\HttpKernel\HttpKernel instance |
||
| 1235 | */ |
||
| 1236 | protected function getHttpKernelService() |
||
| 1240 | |||
| 1241 | /* |
||
| 1242 | * Gets the 'kernel' service. |
||
| 1243 | * |
||
| 1244 | * This service is shared. |
||
| 1245 | * This method always returns the same instance of the service. |
||
| 1246 | * |
||
| 1247 | * @throws RuntimeException always since this service is expected to be injected dynamically |
||
| 1248 | */ |
||
| 1249 | protected function getKernelService() |
||
| 1253 | |||
| 1254 | /* |
||
| 1255 | * Gets the 'kernel.class_cache.cache_warmer' service. |
||
| 1256 | * |
||
| 1257 | * This service is shared. |
||
| 1258 | * This method always returns the same instance of the service. |
||
| 1259 | * |
||
| 1260 | * @return \Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer A Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer instance |
||
| 1261 | */ |
||
| 1262 | protected function getKernel_ClassCache_CacheWarmerService() |
||
| 1266 | |||
| 1267 | /* |
||
| 1268 | * Gets the 'locale_listener' service. |
||
| 1269 | * |
||
| 1270 | * This service is shared. |
||
| 1271 | * This method always returns the same instance of the service. |
||
| 1272 | * |
||
| 1273 | * @return \Symfony\Component\HttpKernel\EventListener\LocaleListener A Symfony\Component\HttpKernel\EventListener\LocaleListener instance |
||
| 1274 | */ |
||
| 1275 | protected function getLocaleListenerService() |
||
| 1279 | |||
| 1280 | /* |
||
| 1281 | * Gets the 'property_accessor' service. |
||
| 1282 | * |
||
| 1283 | * This service is shared. |
||
| 1284 | * This method always returns the same instance of the service. |
||
| 1285 | * |
||
| 1286 | * @return \Symfony\Component\PropertyAccess\PropertyAccessor A Symfony\Component\PropertyAccess\PropertyAccessor instance |
||
| 1287 | */ |
||
| 1288 | protected function getPropertyAccessorService() |
||
| 1292 | |||
| 1293 | /* |
||
| 1294 | * Gets the 'request_stack' service. |
||
| 1295 | * |
||
| 1296 | * This service is shared. |
||
| 1297 | * This method always returns the same instance of the service. |
||
| 1298 | * |
||
| 1299 | * @return \Symfony\Component\HttpFoundation\RequestStack A Symfony\Component\HttpFoundation\RequestStack instance |
||
| 1300 | */ |
||
| 1301 | protected function getRequestStackService() |
||
| 1305 | |||
| 1306 | /* |
||
| 1307 | * Gets the 'response_listener' service. |
||
| 1308 | * |
||
| 1309 | * This service is shared. |
||
| 1310 | * This method always returns the same instance of the service. |
||
| 1311 | * |
||
| 1312 | * @return \Symfony\Component\HttpKernel\EventListener\ResponseListener A Symfony\Component\HttpKernel\EventListener\ResponseListener instance |
||
| 1313 | */ |
||
| 1314 | protected function getResponseListenerService() |
||
| 1318 | |||
| 1319 | /* |
||
| 1320 | * Gets the 'router' service. |
||
| 1321 | * |
||
| 1322 | * This service is shared. |
||
| 1323 | * This method always returns the same instance of the service. |
||
| 1324 | * |
||
| 1325 | * @return \Symfony\Bundle\FrameworkBundle\Routing\Router A Symfony\Bundle\FrameworkBundle\Routing\Router instance |
||
| 1326 | */ |
||
| 1327 | View Code Duplication | protected function getRouterService() |
|
| 1335 | |||
| 1336 | /* |
||
| 1337 | * Gets the 'router_listener' service. |
||
| 1338 | * |
||
| 1339 | * This service is shared. |
||
| 1340 | * This method always returns the same instance of the service. |
||
| 1341 | * |
||
| 1342 | * @return \Symfony\Component\HttpKernel\EventListener\RouterListener A Symfony\Component\HttpKernel\EventListener\RouterListener instance |
||
| 1343 | */ |
||
| 1344 | protected function getRouterListenerService() |
||
| 1348 | |||
| 1349 | /* |
||
| 1350 | * Gets the 'routing.loader' service. |
||
| 1351 | * |
||
| 1352 | * This service is shared. |
||
| 1353 | * This method always returns the same instance of the service. |
||
| 1354 | * |
||
| 1355 | * @return \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader A Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader instance |
||
| 1356 | */ |
||
| 1357 | View Code Duplication | protected function getRouting_LoaderService() |
|
| 1370 | |||
| 1371 | /* |
||
| 1372 | * Gets the 'service_container' service. |
||
| 1373 | * |
||
| 1374 | * This service is shared. |
||
| 1375 | * This method always returns the same instance of the service. |
||
| 1376 | * |
||
| 1377 | * @throws RuntimeException always since this service is expected to be injected dynamically |
||
| 1378 | */ |
||
| 1379 | protected function getServiceContainerService() |
||
| 1383 | |||
| 1384 | /* |
||
| 1385 | * Gets the 'session' service. |
||
| 1386 | * |
||
| 1387 | * This service is shared. |
||
| 1388 | * This method always returns the same instance of the service. |
||
| 1389 | * |
||
| 1390 | * @return \Symfony\Component\HttpFoundation\Session\Session A Symfony\Component\HttpFoundation\Session\Session instance |
||
| 1391 | */ |
||
| 1392 | protected function getSessionService() |
||
| 1396 | |||
| 1397 | /* |
||
| 1398 | * Gets the 'session.handler' service. |
||
| 1399 | * |
||
| 1400 | * This service is shared. |
||
| 1401 | * This method always returns the same instance of the service. |
||
| 1402 | * |
||
| 1403 | * @return \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler A Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler instance |
||
| 1404 | */ |
||
| 1405 | protected function getSession_HandlerService() |
||
| 1409 | |||
| 1410 | /* |
||
| 1411 | * Gets the 'session.save_listener' service. |
||
| 1412 | * |
||
| 1413 | * This service is shared. |
||
| 1414 | * This method always returns the same instance of the service. |
||
| 1415 | * |
||
| 1416 | * @return \Symfony\Component\HttpKernel\EventListener\SaveSessionListener A Symfony\Component\HttpKernel\EventListener\SaveSessionListener instance |
||
| 1417 | */ |
||
| 1418 | protected function getSession_SaveListenerService() |
||
| 1422 | |||
| 1423 | /* |
||
| 1424 | * Gets the 'session.storage.filesystem' service. |
||
| 1425 | * |
||
| 1426 | * This service is shared. |
||
| 1427 | * This method always returns the same instance of the service. |
||
| 1428 | * |
||
| 1429 | * @return \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage instance |
||
| 1430 | */ |
||
| 1431 | protected function getSession_Storage_FilesystemService() |
||
| 1435 | |||
| 1436 | /* |
||
| 1437 | * Gets the 'session.storage.native' service. |
||
| 1438 | * |
||
| 1439 | * This service is shared. |
||
| 1440 | * This method always returns the same instance of the service. |
||
| 1441 | * |
||
| 1442 | * @return \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage instance |
||
| 1443 | */ |
||
| 1444 | protected function getSession_Storage_NativeService() |
||
| 1448 | |||
| 1449 | /* |
||
| 1450 | * Gets the 'session.storage.php_bridge' service. |
||
| 1451 | * |
||
| 1452 | * This service is shared. |
||
| 1453 | * This method always returns the same instance of the service. |
||
| 1454 | * |
||
| 1455 | * @return \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage instance |
||
| 1456 | */ |
||
| 1457 | protected function getSession_Storage_PhpBridgeService() |
||
| 1461 | |||
| 1462 | /* |
||
| 1463 | * Gets the 'session_listener' service. |
||
| 1464 | * |
||
| 1465 | * This service is shared. |
||
| 1466 | * This method always returns the same instance of the service. |
||
| 1467 | * |
||
| 1468 | * @return \Symfony\Bundle\FrameworkBundle\EventListener\SessionListener A Symfony\Bundle\FrameworkBundle\EventListener\SessionListener instance |
||
| 1469 | */ |
||
| 1470 | protected function getSessionListenerService() |
||
| 1474 | |||
| 1475 | /* |
||
| 1476 | * Gets the 'streamed_response_listener' service. |
||
| 1477 | * |
||
| 1478 | * This service is shared. |
||
| 1479 | * This method always returns the same instance of the service. |
||
| 1480 | * |
||
| 1481 | * @return \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener A Symfony\Component\HttpKernel\EventListener\StreamedResponseListener instance |
||
| 1482 | */ |
||
| 1483 | protected function getStreamedResponseListenerService() |
||
| 1487 | |||
| 1488 | /* |
||
| 1489 | * Gets the 'test.client' service. |
||
| 1490 | * |
||
| 1491 | * @return \Symfony\Bundle\FrameworkBundle\Client A Symfony\Bundle\FrameworkBundle\Client instance |
||
| 1492 | */ |
||
| 1493 | protected function getTest_ClientService() |
||
| 1497 | |||
| 1498 | /* |
||
| 1499 | * Gets the 'test.client.cookiejar' service. |
||
| 1500 | * |
||
| 1501 | * @return \Symfony\Component\BrowserKit\CookieJar A Symfony\Component\BrowserKit\CookieJar instance |
||
| 1502 | */ |
||
| 1503 | protected function getTest_Client_CookiejarService() |
||
| 1507 | |||
| 1508 | /* |
||
| 1509 | * Gets the 'test.client.history' service. |
||
| 1510 | * |
||
| 1511 | * @return \Symfony\Component\BrowserKit\History A Symfony\Component\BrowserKit\History instance |
||
| 1512 | */ |
||
| 1513 | protected function getTest_Client_HistoryService() |
||
| 1517 | |||
| 1518 | /* |
||
| 1519 | * Gets the 'test.session.listener' service. |
||
| 1520 | * |
||
| 1521 | * This service is shared. |
||
| 1522 | * This method always returns the same instance of the service. |
||
| 1523 | * |
||
| 1524 | * @return \Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener A Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener instance |
||
| 1525 | */ |
||
| 1526 | protected function getTest_Session_ListenerService() |
||
| 1530 | |||
| 1531 | /* |
||
| 1532 | * Gets the 'translation.dumper.csv' service. |
||
| 1533 | * |
||
| 1534 | * This service is shared. |
||
| 1535 | * This method always returns the same instance of the service. |
||
| 1536 | * |
||
| 1537 | * @return \Symfony\Component\Translation\Dumper\CsvFileDumper A Symfony\Component\Translation\Dumper\CsvFileDumper instance |
||
| 1538 | */ |
||
| 1539 | protected function getTranslation_Dumper_CsvService() |
||
| 1543 | |||
| 1544 | /* |
||
| 1545 | * Gets the 'translation.dumper.ini' service. |
||
| 1546 | * |
||
| 1547 | * This service is shared. |
||
| 1548 | * This method always returns the same instance of the service. |
||
| 1549 | * |
||
| 1550 | * @return \Symfony\Component\Translation\Dumper\IniFileDumper A Symfony\Component\Translation\Dumper\IniFileDumper instance |
||
| 1551 | */ |
||
| 1552 | protected function getTranslation_Dumper_IniService() |
||
| 1556 | |||
| 1557 | /* |
||
| 1558 | * Gets the 'translation.dumper.json' service. |
||
| 1559 | * |
||
| 1560 | * This service is shared. |
||
| 1561 | * This method always returns the same instance of the service. |
||
| 1562 | * |
||
| 1563 | * @return \Symfony\Component\Translation\Dumper\JsonFileDumper A Symfony\Component\Translation\Dumper\JsonFileDumper instance |
||
| 1564 | */ |
||
| 1565 | protected function getTranslation_Dumper_JsonService() |
||
| 1569 | |||
| 1570 | /* |
||
| 1571 | * Gets the 'translation.dumper.mo' service. |
||
| 1572 | * |
||
| 1573 | * This service is shared. |
||
| 1574 | * This method always returns the same instance of the service. |
||
| 1575 | * |
||
| 1576 | * @return \Symfony\Component\Translation\Dumper\MoFileDumper A Symfony\Component\Translation\Dumper\MoFileDumper instance |
||
| 1577 | */ |
||
| 1578 | protected function getTranslation_Dumper_MoService() |
||
| 1582 | |||
| 1583 | /* |
||
| 1584 | * Gets the 'translation.dumper.php' service. |
||
| 1585 | * |
||
| 1586 | * This service is shared. |
||
| 1587 | * This method always returns the same instance of the service. |
||
| 1588 | * |
||
| 1589 | * @return \Symfony\Component\Translation\Dumper\PhpFileDumper A Symfony\Component\Translation\Dumper\PhpFileDumper instance |
||
| 1590 | */ |
||
| 1591 | protected function getTranslation_Dumper_PhpService() |
||
| 1595 | |||
| 1596 | /* |
||
| 1597 | * Gets the 'translation.dumper.po' service. |
||
| 1598 | * |
||
| 1599 | * This service is shared. |
||
| 1600 | * This method always returns the same instance of the service. |
||
| 1601 | * |
||
| 1602 | * @return \Symfony\Component\Translation\Dumper\PoFileDumper A Symfony\Component\Translation\Dumper\PoFileDumper instance |
||
| 1603 | */ |
||
| 1604 | protected function getTranslation_Dumper_PoService() |
||
| 1608 | |||
| 1609 | /* |
||
| 1610 | * Gets the 'translation.dumper.qt' service. |
||
| 1611 | * |
||
| 1612 | * This service is shared. |
||
| 1613 | * This method always returns the same instance of the service. |
||
| 1614 | * |
||
| 1615 | * @return \Symfony\Component\Translation\Dumper\QtFileDumper A Symfony\Component\Translation\Dumper\QtFileDumper instance |
||
| 1616 | */ |
||
| 1617 | protected function getTranslation_Dumper_QtService() |
||
| 1621 | |||
| 1622 | /* |
||
| 1623 | * Gets the 'translation.dumper.res' service. |
||
| 1624 | * |
||
| 1625 | * This service is shared. |
||
| 1626 | * This method always returns the same instance of the service. |
||
| 1627 | * |
||
| 1628 | * @return \Symfony\Component\Translation\Dumper\IcuResFileDumper A Symfony\Component\Translation\Dumper\IcuResFileDumper instance |
||
| 1629 | */ |
||
| 1630 | protected function getTranslation_Dumper_ResService() |
||
| 1634 | |||
| 1635 | /* |
||
| 1636 | * Gets the 'translation.dumper.xliff' service. |
||
| 1637 | * |
||
| 1638 | * This service is shared. |
||
| 1639 | * This method always returns the same instance of the service. |
||
| 1640 | * |
||
| 1641 | * @return \Symfony\Component\Translation\Dumper\XliffFileDumper A Symfony\Component\Translation\Dumper\XliffFileDumper instance |
||
| 1642 | */ |
||
| 1643 | protected function getTranslation_Dumper_XliffService() |
||
| 1647 | |||
| 1648 | /* |
||
| 1649 | * Gets the 'translation.dumper.yml' service. |
||
| 1650 | * |
||
| 1651 | * This service is shared. |
||
| 1652 | * This method always returns the same instance of the service. |
||
| 1653 | * |
||
| 1654 | * @return \Symfony\Component\Translation\Dumper\YamlFileDumper A Symfony\Component\Translation\Dumper\YamlFileDumper instance |
||
| 1655 | */ |
||
| 1656 | protected function getTranslation_Dumper_YmlService() |
||
| 1660 | |||
| 1661 | /* |
||
| 1662 | * Gets the 'translation.extractor' service. |
||
| 1663 | * |
||
| 1664 | * This service is shared. |
||
| 1665 | * This method always returns the same instance of the service. |
||
| 1666 | * |
||
| 1667 | * @return \Symfony\Component\Translation\Extractor\ChainExtractor A Symfony\Component\Translation\Extractor\ChainExtractor instance |
||
| 1668 | */ |
||
| 1669 | View Code Duplication | protected function getTranslation_ExtractorService() |
|
| 1677 | |||
| 1678 | /* |
||
| 1679 | * Gets the 'translation.extractor.php' service. |
||
| 1680 | * |
||
| 1681 | * This service is shared. |
||
| 1682 | * This method always returns the same instance of the service. |
||
| 1683 | * |
||
| 1684 | * @return \Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor A Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor instance |
||
| 1685 | */ |
||
| 1686 | protected function getTranslation_Extractor_PhpService() |
||
| 1690 | |||
| 1691 | /* |
||
| 1692 | * Gets the 'translation.loader' service. |
||
| 1693 | * |
||
| 1694 | * This service is shared. |
||
| 1695 | * This method always returns the same instance of the service. |
||
| 1696 | * |
||
| 1697 | * @return \Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader A Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader instance |
||
| 1698 | */ |
||
| 1699 | View Code Duplication | protected function getTranslation_LoaderService() |
|
| 1720 | |||
| 1721 | /* |
||
| 1722 | * Gets the 'translation.loader.csv' service. |
||
| 1723 | * |
||
| 1724 | * This service is shared. |
||
| 1725 | * This method always returns the same instance of the service. |
||
| 1726 | * |
||
| 1727 | * @return \Symfony\Component\Translation\SimpleLoader\CsvFileLoader A Symfony\Component\Translation\SimpleLoader\CsvFileLoader instance |
||
| 1728 | */ |
||
| 1729 | protected function getTranslation_Loader_CsvService() |
||
| 1733 | |||
| 1734 | /* |
||
| 1735 | * Gets the 'translation.loader.dat' service. |
||
| 1736 | * |
||
| 1737 | * This service is shared. |
||
| 1738 | * This method always returns the same instance of the service. |
||
| 1739 | * |
||
| 1740 | * @return \Symfony\Component\Translation\SimpleLoader\IcuDatFileLoader A Symfony\Component\Translation\SimpleLoader\IcuDatFileLoader instance |
||
| 1741 | */ |
||
| 1742 | protected function getTranslation_Loader_DatService() |
||
| 1746 | |||
| 1747 | /* |
||
| 1748 | * Gets the 'translation.loader.ini' service. |
||
| 1749 | * |
||
| 1750 | * This service is shared. |
||
| 1751 | * This method always returns the same instance of the service. |
||
| 1752 | * |
||
| 1753 | * @return \Symfony\Component\Translation\SimpleLoader\IniFileLoader A Symfony\Component\Translation\SimpleLoader\IniFileLoader instance |
||
| 1754 | */ |
||
| 1755 | protected function getTranslation_Loader_IniService() |
||
| 1759 | |||
| 1760 | /* |
||
| 1761 | * Gets the 'translation.loader.json' service. |
||
| 1762 | * |
||
| 1763 | * This service is shared. |
||
| 1764 | * This method always returns the same instance of the service. |
||
| 1765 | * |
||
| 1766 | * @return \Symfony\Component\Translation\SimpleLoader\JsonFileLoader A Symfony\Component\Translation\SimpleLoader\JsonFileLoader instance |
||
| 1767 | */ |
||
| 1768 | protected function getTranslation_Loader_JsonService() |
||
| 1772 | |||
| 1773 | /* |
||
| 1774 | * Gets the 'translation.loader.mo' service. |
||
| 1775 | * |
||
| 1776 | * This service is shared. |
||
| 1777 | * This method always returns the same instance of the service. |
||
| 1778 | * |
||
| 1779 | * @return \Symfony\Component\Translation\SimpleLoader\MoFileLoader A Symfony\Component\Translation\SimpleLoader\MoFileLoader instance |
||
| 1780 | */ |
||
| 1781 | protected function getTranslation_Loader_MoService() |
||
| 1785 | |||
| 1786 | /* |
||
| 1787 | * Gets the 'translation.loader.php' service. |
||
| 1788 | * |
||
| 1789 | * This service is shared. |
||
| 1790 | * This method always returns the same instance of the service. |
||
| 1791 | * |
||
| 1792 | * @return \Symfony\Component\Translation\SimpleLoader\PhpFileLoader A Symfony\Component\Translation\SimpleLoader\PhpFileLoader instance |
||
| 1793 | */ |
||
| 1794 | protected function getTranslation_Loader_PhpService() |
||
| 1798 | |||
| 1799 | /* |
||
| 1800 | * Gets the 'translation.loader.po' service. |
||
| 1801 | * |
||
| 1802 | * This service is shared. |
||
| 1803 | * This method always returns the same instance of the service. |
||
| 1804 | * |
||
| 1805 | * @return \Symfony\Component\Translation\SimpleLoader\PoFileLoader A Symfony\Component\Translation\SimpleLoader\PoFileLoader instance |
||
| 1806 | */ |
||
| 1807 | protected function getTranslation_Loader_PoService() |
||
| 1811 | |||
| 1812 | /* |
||
| 1813 | * Gets the 'translation.loader.qt' service. |
||
| 1814 | * |
||
| 1815 | * This service is shared. |
||
| 1816 | * This method always returns the same instance of the service. |
||
| 1817 | * |
||
| 1818 | * @return \Symfony\Component\Translation\SimpleLoader\QtFileLoader A Symfony\Component\Translation\SimpleLoader\QtFileLoader instance |
||
| 1819 | */ |
||
| 1820 | protected function getTranslation_Loader_QtService() |
||
| 1824 | |||
| 1825 | /* |
||
| 1826 | * Gets the 'translation.loader.res' service. |
||
| 1827 | * |
||
| 1828 | * This service is shared. |
||
| 1829 | * This method always returns the same instance of the service. |
||
| 1830 | * |
||
| 1831 | * @return \Symfony\Component\Translation\SimpleLoader\IcuResFileLoader A Symfony\Component\Translation\SimpleLoader\IcuResFileLoader instance |
||
| 1832 | */ |
||
| 1833 | protected function getTranslation_Loader_ResService() |
||
| 1837 | |||
| 1838 | /* |
||
| 1839 | * Gets the 'translation.loader.xliff' service. |
||
| 1840 | * |
||
| 1841 | * This service is shared. |
||
| 1842 | * This method always returns the same instance of the service. |
||
| 1843 | * |
||
| 1844 | * @return \Symfony\Component\Translation\SimpleLoader\XliffFileLoader A Symfony\Component\Translation\SimpleLoader\XliffFileLoader instance |
||
| 1845 | */ |
||
| 1846 | protected function getTranslation_Loader_XliffService() |
||
| 1850 | |||
| 1851 | /* |
||
| 1852 | * Gets the 'translation.loader.yml' service. |
||
| 1853 | * |
||
| 1854 | * This service is shared. |
||
| 1855 | * This method always returns the same instance of the service. |
||
| 1856 | * |
||
| 1857 | * @return \Symfony\Component\Translation\SimpleLoader\YamlFileLoader A Symfony\Component\Translation\SimpleLoader\YamlFileLoader instance |
||
| 1858 | */ |
||
| 1859 | protected function getTranslation_Loader_YmlService() |
||
| 1863 | |||
| 1864 | /* |
||
| 1865 | * Gets the 'translation.writer' service. |
||
| 1866 | * |
||
| 1867 | * This service is shared. |
||
| 1868 | * This method always returns the same instance of the service. |
||
| 1869 | * |
||
| 1870 | * @return \Symfony\Component\Translation\Writer\TranslationWriter A Symfony\Component\Translation\Writer\TranslationWriter instance |
||
| 1871 | */ |
||
| 1872 | View Code Duplication | protected function getTranslation_WriterService() |
|
| 1889 | |||
| 1890 | /* |
||
| 1891 | * Gets the 'translator' service. |
||
| 1892 | * |
||
| 1893 | * This service is shared. |
||
| 1894 | * This method always returns the same instance of the service. |
||
| 1895 | * |
||
| 1896 | * @return \Symfony\Component\Translation\IdentityTranslator A Symfony\Component\Translation\IdentityTranslator instance |
||
| 1897 | */ |
||
| 1898 | protected function getTranslatorService() |
||
| 1902 | |||
| 1903 | /* |
||
| 1904 | * Gets the 'translator.default' service. |
||
| 1905 | * |
||
| 1906 | * This service is shared. |
||
| 1907 | * This method always returns the same instance of the service. |
||
| 1908 | * |
||
| 1909 | * @return \Symfony\Bundle\FrameworkBundle\Translation\Translator A Symfony\Bundle\FrameworkBundle\Translation\Translator instance |
||
| 1910 | */ |
||
| 1911 | View Code Duplication | protected function getTranslator_DefaultService() |
|
| 1919 | |||
| 1920 | /* |
||
| 1921 | * Gets the 'translator_listener' service. |
||
| 1922 | * |
||
| 1923 | * This service is shared. |
||
| 1924 | * This method always returns the same instance of the service. |
||
| 1925 | * |
||
| 1926 | * @return \Symfony\Component\HttpKernel\EventListener\TranslatorListener A Symfony\Component\HttpKernel\EventListener\TranslatorListener instance |
||
| 1927 | */ |
||
| 1928 | protected function getTranslatorListenerService() |
||
| 1932 | |||
| 1933 | /* |
||
| 1934 | * Gets the 'uri_signer' service. |
||
| 1935 | * |
||
| 1936 | * This service is shared. |
||
| 1937 | * This method always returns the same instance of the service. |
||
| 1938 | * |
||
| 1939 | * @return \Symfony\Component\HttpKernel\UriSigner A Symfony\Component\HttpKernel\UriSigner instance |
||
| 1940 | */ |
||
| 1941 | protected function getUriSignerService() |
||
| 1945 | |||
| 1946 | /* |
||
| 1947 | * Gets the 'validate_request_listener' service. |
||
| 1948 | * |
||
| 1949 | * This service is shared. |
||
| 1950 | * This method always returns the same instance of the service. |
||
| 1951 | * |
||
| 1952 | * @return \Symfony\Component\HttpKernel\EventListener\ValidateRequestListener A Symfony\Component\HttpKernel\EventListener\ValidateRequestListener instance |
||
| 1953 | */ |
||
| 1954 | protected function getValidateRequestListenerService() |
||
| 1958 | |||
| 1959 | /* |
||
| 1960 | * Gets the 'validator' service. |
||
| 1961 | * |
||
| 1962 | * This service is shared. |
||
| 1963 | * This method always returns the same instance of the service. |
||
| 1964 | * |
||
| 1965 | * @return \Symfony\Component\Validator\Validator\ValidatorInterface A Symfony\Component\Validator\Validator\ValidatorInterface instance |
||
| 1966 | */ |
||
| 1967 | protected function getValidatorService() |
||
| 1971 | |||
| 1972 | /* |
||
| 1973 | * Gets the 'validator.builder' service. |
||
| 1974 | * |
||
| 1975 | * This service is shared. |
||
| 1976 | * This method always returns the same instance of the service. |
||
| 1977 | * |
||
| 1978 | * @return \Symfony\Component\Validator\ValidatorBuilderInterface A Symfony\Component\Validator\ValidatorBuilderInterface instance |
||
| 1979 | */ |
||
| 1980 | protected function getValidator_BuilderService() |
||
| 1994 | |||
| 1995 | /* |
||
| 1996 | * Gets the 'validator.email' service. |
||
| 1997 | * |
||
| 1998 | * This service is shared. |
||
| 1999 | * This method always returns the same instance of the service. |
||
| 2000 | * |
||
| 2001 | * @return \Symfony\Component\Validator\Constraints\EmailValidator A Symfony\Component\Validator\Constraints\EmailValidator instance |
||
| 2002 | */ |
||
| 2003 | protected function getValidator_EmailService() |
||
| 2007 | |||
| 2008 | /* |
||
| 2009 | * Gets the 'validator.expression' service. |
||
| 2010 | * |
||
| 2011 | * This service is shared. |
||
| 2012 | * This method always returns the same instance of the service. |
||
| 2013 | * |
||
| 2014 | * @return \Symfony\Component\Validator\Constraints\ExpressionValidator A Symfony\Component\Validator\Constraints\ExpressionValidator instance |
||
| 2015 | */ |
||
| 2016 | protected function getValidator_ExpressionService() |
||
| 2020 | |||
| 2021 | /* |
||
| 2022 | * Gets the 'cache.validator' service. |
||
| 2023 | * |
||
| 2024 | * This service is shared. |
||
| 2025 | * This method always returns the same instance of the service. |
||
| 2026 | * |
||
| 2027 | * This service is private. |
||
| 2028 | * If you want to be able to request this service from the container directly, |
||
| 2029 | * make it public, otherwise you might end up with broken code. |
||
| 2030 | * |
||
| 2031 | * @return \Symfony\Component\Cache\Adapter\AdapterInterface A Symfony\Component\Cache\Adapter\AdapterInterface instance |
||
| 2032 | */ |
||
| 2033 | protected function getCache_ValidatorService() |
||
| 2037 | |||
| 2038 | /* |
||
| 2039 | * Gets the 'controller_name_converter' service. |
||
| 2040 | * |
||
| 2041 | * This service is shared. |
||
| 2042 | * This method always returns the same instance of the service. |
||
| 2043 | * |
||
| 2044 | * This service is private. |
||
| 2045 | * If you want to be able to request this service from the container directly, |
||
| 2046 | * make it public, otherwise you might end up with broken code. |
||
| 2047 | * |
||
| 2048 | * @return \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser A Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser instance |
||
| 2049 | */ |
||
| 2050 | protected function getControllerNameConverterService() |
||
| 2054 | |||
| 2055 | /* |
||
| 2056 | * Gets the 'router.request_context' service. |
||
| 2057 | * |
||
| 2058 | * This service is shared. |
||
| 2059 | * This method always returns the same instance of the service. |
||
| 2060 | * |
||
| 2061 | * This service is private. |
||
| 2062 | * If you want to be able to request this service from the container directly, |
||
| 2063 | * make it public, otherwise you might end up with broken code. |
||
| 2064 | * |
||
| 2065 | * @return \Symfony\Component\Routing\RequestContext A Symfony\Component\Routing\RequestContext instance |
||
| 2066 | */ |
||
| 2067 | protected function getRouter_RequestContextService() |
||
| 2071 | |||
| 2072 | /* |
||
| 2073 | * Gets the 'session.storage.metadata_bag' service. |
||
| 2074 | * |
||
| 2075 | * This service is shared. |
||
| 2076 | * This method always returns the same instance of the service. |
||
| 2077 | * |
||
| 2078 | * This service is private. |
||
| 2079 | * If you want to be able to request this service from the container directly, |
||
| 2080 | * make it public, otherwise you might end up with broken code. |
||
| 2081 | * |
||
| 2082 | * @return \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag A Symfony\Component\HttpFoundation\Session\Storage\MetadataBag instance |
||
| 2083 | */ |
||
| 2084 | protected function getSession_Storage_MetadataBagService() |
||
| 2088 | |||
| 2089 | /* |
||
| 2090 | * Gets the 'translator.selector' service. |
||
| 2091 | * |
||
| 2092 | * This service is shared. |
||
| 2093 | * This method always returns the same instance of the service. |
||
| 2094 | * |
||
| 2095 | * This service is private. |
||
| 2096 | * If you want to be able to request this service from the container directly, |
||
| 2097 | * make it public, otherwise you might end up with broken code. |
||
| 2098 | * |
||
| 2099 | * @return \Symfony\Component\Translation\MessageSelector A Symfony\Component\Translation\MessageSelector instance |
||
| 2100 | */ |
||
| 2101 | protected function getTranslator_SelectorService() |
||
| 2105 | |||
| 2106 | /* |
||
| 2107 | * {@inheritdoc} |
||
| 2108 | */ |
||
| 2109 | public function getParameter($name) |
||
| 2119 | |||
| 2120 | /* |
||
| 2121 | * {@inheritdoc} |
||
| 2122 | */ |
||
| 2123 | public function hasParameter($name) |
||
| 2129 | |||
| 2130 | /* |
||
| 2131 | * {@inheritdoc} |
||
| 2132 | */ |
||
| 2133 | public function setParameter($name, $value) |
||
| 2137 | |||
| 2138 | /* |
||
| 2139 | * {@inheritdoc} |
||
| 2140 | */ |
||
| 2141 | public function getParameterBag() |
||
| 2149 | |||
| 2150 | /* |
||
| 2151 | * Gets the default parameters. |
||
| 2152 | * |
||
| 2153 | * @return array An array of the default parameters |
||
| 2154 | */ |
||
| 2155 | protected function getDefaultParameters() |
||
| 2233 | } |
||
| 2234 |
Let’s assume that you have a directory layout like this:
. |-- OtherDir | |-- Bar.php | `-- Foo.php `-- SomeDir `-- Foo.phpand let’s assume the following content of
Bar.php:If both files
OtherDir/Foo.phpandSomeDir/Foo.phpare loaded in the same runtime, you will see a PHP error such as the following:PHP Fatal error: Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.phpHowever, as
OtherDir/Foo.phpdoes not necessarily have to be loaded and the error is only triggered if it is loaded beforeOtherDir/Bar.php, this problem might go unnoticed for a while. In order to prevent this error from surfacing, you must import the namespace with a different alias: