psr.inc.php 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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/psr/container' )->name( [ '*.php', 'LICENSE', 'composer.json' ] ),
  14. Finder::create()->files()->in( 'vendor/psr/http-message' )->name( [ '*.php', 'LICENSE', 'composer.json' ] ),
  15. Finder::create()->files()->in( 'vendor/psr/log' )->exclude( 'Test' )->name( [ '*.php', 'LICENSE', 'composer.json' ] ),
  16. ],
  17. /*
  18. * When scoping PHP files, there will be scenarios where some of the code being scoped indirectly references the
  19. * original namespace. These will include, for example, strings or string manipulations. PHP-Scoper has limited
  20. * support for prefixing such strings. To circumvent that, you can define patchers to manipulate the file to your
  21. * heart contents.
  22. *
  23. * For more see: https://github.com/humbug/php-scoper#patchers
  24. */
  25. 'patchers' => [],
  26. );