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

updateRepo() public method

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