idiorm.inc.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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' => array(
  13. Finder::create()->files()->in( 'vendor/j4mie/idiorm' )->name( [ 'idiorm.php', 'LICENSE', 'composer.json' ] ),
  14. ),
  15. /*
  16. * When scoping PHP files, there will be scenarios where some of the code being scoped indirectly references the
  17. * original namespace. These will include, for example, strings or string manipulations. PHP-Scoper has limited
  18. * support for prefixing such strings. To circumvent that, you can define patchers to manipulate the file to your
  19. * heart contents.
  20. *
  21. * For more see: https://github.com/humbug/php-scoper#patchers
  22. */
  23. 'patchers' => array(),
  24. /*
  25. * By default, PHP-Scoper will not prefix the user defined constants, classes and functions belonging to the global
  26. * namespace. You can however change that setting for them to be prefixed as usual unless explicitly whitelisted.
  27. *
  28. * https://github.com/humbug/php-scoper#whitelist
  29. */
  30. 'whitelist-global-classes' => false,
  31. );