src/Api/ApiServiceProvider.php
protected function registerNotificationSerializers()
    {
        $blueprints = [];
        $serializers = [
            'discussionRenamed' => BasicDiscussionSerializer::class
        ];

        $this->app->make('events')->fire(
            new ConfigureNotificationTypes($blueprints, $serializers)
        );

        foreach ($serializers as $type => $serializer) {
            NotificationSerializer::setSubjectSerializer($type, $serializer);
        }
    }
protected function registerNotificationSerializers()
    {
        $blueprints = [];
        $serializers = [
            'discussionRenamed' => BasicDiscussionSerializer::class
        ];

        $this->app->make('events')->fire(
            new ConfigureNotificationTypes($blueprints, $serializers)
        );

        foreach ($serializers as $type => $serializer) {
            NotificationSerializer::setSubjectSerializer($type, $serializer);
        }
    }
protected function registerNotificationSerializers ( ) { $ blueprints = [ ] ; $ serializers = [ 'discussionRenamed' => BasicDiscussionSerializer :: class ] ; $ this -> app -> make ( 'events' ) -> fire ( new ConfigureNotificationTypes ( $ blueprints , $ serializers ) ) ; foreach ( $ serializers as $ type => $ serializer ) { NotificationSerializer :: setSubjectSerializer ( $ type , $ serializer ) ; } }
Register notification serializers.
Register notification serializers .