SHARE
TWEET

Untitled

eniine Aug 25th, 2017 463 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Learn more about services, parameters and containers at
  2. # https://symfony.com/doc/current/service_container.html
  3. parameters:
  4.    #parameter_name: value
  5.  
  6. services:
  7.    # default configuration for services in *this* file
  8.     _defaults:
  9.        # automatically injects dependencies in your services
  10.         autowire: true
  11.         # automatically registers your services as commands, event subscribers, etc.
  12.         autoconfigure: true
  13.         # this means you cannot fetch services directly from the container via $container->get()
  14.         # if you need to do this, you can override this setting on individual services
  15.         public: false
  16.  
  17.     # makes classes in src/AppBundle available to be used as services
  18.     # this creates a service per class whose id is the fully-qualified class name
  19.     AppBundle\:
  20.         resource: '../../src/AppBundle/*'
  21.         # you can exclude directories or files
  22.         # but if a service is unused, it's removed anyway
  23.         exclude: '../../src/AppBundle/{Entity,Repository,Tests}'
  24.  
  25.     # controllers are imported separately to make sure they're public
  26.     # and have a tag that allows actions to type-hint services
  27.     AppBundle\Controller\:
  28.         resource: '../../src/AppBundle/Controller'
  29.         public: true
  30.         tags: ['controller.service_arguments']
  31.  
  32.     # add more services, or override services that need manual wiring
  33.     # AppBundle\Service\ExampleService:
  34.     #     arguments:
  35.     #         $someArgument: 'some_value'
  36.  
  37.     app.markdown_transformer:
  38.         class: AppBundle\Service\MarkdownTransformer
  39.         arguments: ['@markdown.parser', '@doctrine_cache.providers.my_markdown_cache']
  40.         public: true
  41.  
  42.     app.markdown_extension:
  43.         class: AppBundle\Twig\MarkdownExtension
  44.         tags:
  45.             - { name: twig.extension }
  46.         arguments: ['@app.markdown_transformer']
  47.         public: true
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top