Knp\Bundle\KnpBundlesBundle\Updater\Updater::removeRepo PHP Method

removeRepo() public method

public removeRepo ( Bundle $bundle ) : boolean
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return boolean
    public function removeRepo(Bundle $bundle)
    {
        if ($this->bundleUpdateProducer) {
            // Create a Message object
            $message = array('bundle_id' => $bundle->getId(), 'action' => 'remove');
            // RabbitMQ, publish my message!
            $this->bundleUpdateProducer->publish(json_encode($message));
            return true;
        }
        return false;
    }