/services1.yml Secret
Created
February 25, 2017 17:56
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
-
Save weaverryan/7caebf2acfe115e46e3e67c7e3eca8b8 to your computer and use it in GitHub Desktop.
New Symfony Demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
slugger: | |
class: AppBundle\Utils\Slugger | |
markdown: | |
class: AppBundle\Utils\Markdown | |
app.twig.app_extension: | |
public: false | |
class: AppBundle\Twig\AppExtension | |
arguments: ['@markdown', '%app_locales%'] | |
tags: | |
- { name: twig.extension } | |
app.twig.intl_extension: | |
public: false | |
class: Twig_Extensions_Extension_Intl | |
tags: | |
- { name: twig.extension } | |
app.form.type.tagsinput: | |
class: AppBundle\Form\Type\TagsInputType | |
arguments: ['@doctrine.orm.entity_manager'] | |
tags: | |
- { name: form.type } | |
app.redirect_to_preferred_locale_listener: | |
class: AppBundle\EventListener\RedirectToPreferredLocaleListener | |
arguments: ['@router', '%app_locales%', '%locale%'] | |
tags: | |
- { name: kernel.event_listener, event: kernel.request, method: onKernelRequest } | |
app.comment_notification: | |
class: AppBundle\EventListener\CommentNotificationListener | |
arguments: ['@mailer', '@router', '@translator', '%app.notifications.email_sender%'] | |
tags: | |
- { name: kernel.event_listener, event: comment.created, method: onCommentCreated } | |
app.requirements_subscriber: | |
class: AppBundle\EventListener\CheckRequirementsSubscriber | |
arguments: ['@doctrine.orm.entity_manager'] | |
tags: | |
- { name: kernel.event_subscriber } | |
app.post_voter: | |
class: AppBundle\Security\PostVoter | |
public: false | |
tags: | |
- { name: security.voter } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
_defaults: | |
autowire: true | |
public: false | |
_instanceof: | |
Symfony\Component\EventDispatcher\EventSubscriberInterface: | |
tags: ['kernel.event_subscriber'] | |
Symfony\Component\Form\FormTypeInterface: | |
tags: ['form.type'] | |
Symfony\Component\Security\Core\Authorization\VoterInterface: | |
tags: ['security.voter'] | |
Twig_ExtensionInterface: | |
tags: ['twig.extension'] | |
AppBundle\Controller\Admin\BlogController: | |
getters: | |
getSlugger: '@AppBundle\Utils\Slugger' | |
AppBundle\: | |
# Register all classes in the src/AppBundle directory as services | |
resource: '../../src/AppBundle/{EventListener,Form/Type,Security,Twig,Utils}' | |
AppBundle\Controller\: | |
resource: '../../src/AppBundle/Controller' | |
public: true | |
app.twig.intl_extension: | |
class: Twig_Extensions_Extension_Intl | |
AppBundle\Twig\AppExtension: | |
$locales: '%app_locales%' | |
AppBundle\EventListener\RedirectToPreferredLocaleSubscriber: | |
$locales: '%app_locales%' | |
AppBundle\EventListener\CommentNotificationSubscriber: | |
$sender: '%app.notifications.email_sender%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment