src/Phlexible/Bundle/MessageBundle/Controller/SubscriptionsController.php
public function deleteAction($id)
    {
        $subscriptionManager = $this->get('phlexible_message.subscription_manager');

        $subscription = $subscriptionManager->find($id);
        $subscriptionManager->deleteSubscription($subscription);

        return new ResultResponse(true, 'Subscription deleted.');
    }
public function deleteAction($id)
    {
        $subscriptionManager = $this->get('phlexible_message.subscription_manager');

        $subscription = $subscriptionManager->find($id);
        $subscriptionManager->deleteSubscription($subscription);

        return new ResultResponse(true, 'Subscription deleted.');
    }
public function deleteAction ( $ id ) { $ subscriptionManager = $ this -> get ( 'phlexible_message.subscription_manager' ) ; $ subscription = $ subscriptionManager -> find ( $ id ) ; $ subscriptionManager -> deleteSubscription ( $ subscription ) ; return new ResultResponse ( true , 'Subscription deleted.' ) ; }
Delete subscription.

@param string $id

@return ResultResponse
@Route("/delete/{id}", name="messages_subscription_delete")
Delete subscription .