DefaultFinder.php 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. * This file is part of the PHP CS utility.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\CS\Finder;
  11. use Symfony\CS\Finder as BaseFinder;
  12. /**
  13. * @author Fabien Potencier <fabien@symfony.com>
  14. *
  15. * @deprecated
  16. */
  17. class DefaultFinder extends BaseFinder
  18. {
  19. public function __construct()
  20. {
  21. @trigger_error(
  22. sprintf(
  23. 'The "%s" class is deprecated. You should stop using it, as it will soon be removed in 2.0 version. Use "%s" instead.',
  24. __CLASS__,
  25. 'Symfony\CS\Finder'
  26. ),
  27. E_USER_DEPRECATED
  28. );
  29. parent::__construct();
  30. $this
  31. ->name('*.xml')
  32. ->name('*.yml')
  33. ;
  34. }
  35. }