dependency-injection.inc.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. declare( strict_types=1 );
  3. use Isolated\Symfony\Component\Finder\Finder;
  4. return array(
  5. /*
  6. * By default when running php-scoper add-prefix, it will prefix all relevant code found in the current working
  7. * directory. You can however define which files should be scoped by defining a collection of Finders in the
  8. * following configuration key.
  9. *
  10. * For more see: https://github.com/humbug/php-scoper#finders-and-paths
  11. */
  12. 'finders' => [
  13. Finder::create()->files()->in( 'vendor/symfony/dependency-injection' )->name( [
  14. 'Container.php', 'ContainerInterface.php', 'ResettableContainerInterface.php', 'LICENSE', 'composer.json'
  15. ] ),
  16. Finder::create()->files()->in( 'vendor/symfony/dependency-injection/Argument' )->name( [ 'RewindableGenerator.php' ] ),
  17. Finder::create()->files()->in( 'vendor/symfony/dependency-injection/Exception' )->name( [
  18. 'InvalidArgumentException.php', 'LogicException.php', 'RuntimeException.php',
  19. 'ServiceCircularReferenceException.php', 'ServiceNotFoundException.php', 'EnvNotFoundException.php',
  20. 'ParameterCircularReferenceException.php', 'ExceptionInterface.php'
  21. ] ),
  22. Finder::create()->files()->in( 'vendor/symfony/dependency-injection/ParameterBag' )->name( [
  23. 'FrozenParameterBag.php', 'ParameterBagInterface.php', 'EnvPlaceholderParameterBag.php', 'ParameterBag.php'
  24. ] ),
  25. ],
  26. /*
  27. * When scoping PHP files, there will be scenarios where some of the code being scoped indirectly references the
  28. * original namespace. These will include, for example, strings or string manipulations. PHP-Scoper has limited
  29. * support for prefixing such strings. To circumvent that, you can define patchers to manipulate the file to your
  30. * heart contents.
  31. *
  32. * For more see: https://github.com/humbug/php-scoper#patchers
  33. */
  34. 'patchers' => [],
  35. );