ConfigProvider.php 902 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. namespace Hyperf\Utils;
  12. use Hyperf\Contract\NormalizerInterface;
  13. use Hyperf\Utils\Serializer\SerializerFactory;
  14. use Hyperf\Utils\Serializer\SimpleNormalizer;
  15. use Symfony\Component\Serializer\Serializer;
  16. class ConfigProvider
  17. {
  18. public function __invoke()
  19. {
  20. return [
  21. 'dependencies' => [
  22. Serializer::class => SerializerFactory::class,
  23. NormalizerInterface::class => SimpleNormalizer::class,
  24. ],
  25. 'annotations' => [
  26. 'scan' => [
  27. 'paths' => [
  28. __DIR__,
  29. ],
  30. ],
  31. ],
  32. ];
  33. }
  34. }