Symfony23Finder.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /**
  12. * @author Fabien Potencier <fabien@symfony.com>
  13. */
  14. class Symfony23Finder extends DefaultFinder
  15. {
  16. public function __construct()
  17. {
  18. @trigger_error(
  19. sprintf('The "%s" class is deprecated. You should stop using it, as it will soon be removed in 2.0 version.', __CLASS__),
  20. E_USER_DEPRECATED
  21. );
  22. parent::__construct();
  23. }
  24. protected function getDirs($dir)
  25. {
  26. return array($dir.'/src');
  27. }
  28. protected function getFilesToExclude()
  29. {
  30. return array(
  31. 'Symfony/Component/Console/Tests/Fixtures/application_1.xml',
  32. 'Symfony/Component/Console/Tests/Fixtures/application_2.xml',
  33. 'Symfony/Component/Console/Tests/Helper/TableHelperTest.php',
  34. 'Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services1.yml',
  35. 'Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services8.yml',
  36. 'Symfony/Component/Yaml/Tests/Fixtures/sfTests.yml',
  37. );
  38. }
  39. }