public function onKernelResponse(FilterResponseEvent $event)
	{
		$result = parent::onKernelResponse($event);
		$content = ob_get_contents();

		if ($this->request_stack->getCurrentRequest()->getMethod() === 'POST' && empty($content))
		{
			$event->stopPropagation();
		}

		return $result;
	}
public function onKernelResponse(FilterResponseEvent $event)
	{
		$result = parent::onKernelResponse($event);
		$content = ob_get_contents();

		if ($this->request_stack->getCurrentRequest()->getMethod() === 'POST' && empty($content))
		{
			$event->stopPropagation();
		}

		return $result;
	}
public function onKernelResponse ( FilterResponseEvent $ event ) { $ result = parent :: onKernelResponse ( $ event ) ; $ content = ob_get_contents ( ) ; if ( $ this -> request_stack -> getCurrentRequest ( ) -> getMethod ( ) === 'POST' && empty ( $ content ) ) { $ event -> stopPropagation ( ) ; } return $ result ; }
Avoid the injection of the toolbar

@param FilterResponseEvent $event
Avoid the injection of the toolbar