You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.8 KiB

  1. # This file is the entry point to configure your own services.
  2. # Files in the packages/ subdirectory configure your dependencies.
  3. # Put parameters here that don't need to change on each machine where the app is deployed
  4. # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  5. parameters:
  6. # app.feedFetching.cacheDuration: 3600 # in seconds
  7. app.feedFetching.cacheDuration: 604800 # in seconds, 1 week
  8. services:
  9. # default configuration for services in *this* file
  10. _defaults:
  11. autowire: true # Automatically injects dependencies in your services.
  12. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  13. # makes classes in src/ available to be used as services
  14. # this creates a service per class whose id is the fully-qualified class name
  15. App\:
  16. resource: '../src/*'
  17. exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
  18. # controllers are imported separately to make sure services can be injected
  19. # as action arguments even if you don't extend any base controller class
  20. App\Controller\:
  21. resource: '../src/Controller'
  22. tags: ['controller.service_arguments']
  23. App\Service\FeedParserFactory:
  24. arguments:
  25. $cacheDuration: '%app.feedFetching.cacheDuration%'
  26. $cacheLocation: '%kernel.cache_dir%/feedFetching'
  27. # Commands
  28. App\Command\ImportOpmlfileCommand:
  29. tags:
  30. - name: 'console.command'
  31. command: 'app:import:opmlfile'
  32. App\Command\ImportFeedEntriesCommand:
  33. tags:
  34. - name: 'console.command'
  35. command: 'app:import:feedentries'
  36. # Change existing aliases
  37. slugger:
  38. class: App\Service\Slugger