MagentoConfig.php 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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\Config;
  11. use Symfony\CS\Finder\MagentoFinder;
  12. /**
  13. * @author Myke Hines <myke@webhines.com>
  14. *
  15. * @deprecated
  16. */
  17. class MagentoConfig extends Config
  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\Config'
  26. ),
  27. E_USER_DEPRECATED
  28. );
  29. parent::__construct();
  30. $this->finder = new MagentoFinder();
  31. }
  32. public function getName()
  33. {
  34. return 'magento';
  35. }
  36. public function getDescription()
  37. {
  38. return 'The configuration for a Magento application';
  39. }
  40. }