From 2b104a94f8b4ec4cf1f35ad0778a7e030b407c26 Mon Sep 17 00:00:00 2001 From: SonataCI Date: Wed, 19 Dec 2018 02:08:19 +0100 Subject: [PATCH 1/8] DevKit updates --- .github/ISSUE_TEMPLATE/Bug.md | 1 + .github/ISSUE_TEMPLATE/Feature.md | 1 + .travis.yml | 17 +++++++++-------- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/Bug.md b/.github/ISSUE_TEMPLATE/Bug.md index 4f6341e3..3b3a6f00 100644 --- a/.github/ISSUE_TEMPLATE/Bug.md +++ b/.github/ISSUE_TEMPLATE/Bug.md @@ -1,6 +1,7 @@ --- name: 🐞 Bug Report about: Something is broken? 🔨 +labels: bug, unconfirmed --- - - - - - - - - - -* YAML + + + + .. code-block:: yaml + # config/services.yaml + services: sonata.notification.consumer.logger: class: Sonata\NotificationBundle\Consumer\LoggerConsumer + arguments: ['@logger'] tags: - { name: sonata.notification.consumer, type: logger } - arguments: [ "@logger" ] +Now you can use the created service to send a message to the Symfony logger:: -Now you can use the created service to send a message to the symfony logger. - -.. code-block:: php - - get('sonata.notification.backend')->createAndPublish('logger', array( + $this->get('sonata.notification.backend')->createAndPublish('logger', [ 'level' => 'debug', - 'message' => 'Hello world!' - )); + 'message' => 'Hello world!', + ]);