This is a client of Q4M to use in Symfony2 as a Bundle. this bundle is being developed now.
Pull request Compare This branch is 35 commits behind s-edy:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DependencyInjection
Queue
Resources/config
Tests
.gitignore
CHANGELOG.md
LICENSE
README.md
SinyQ4MBundle.php
phpunit.xml.dist

README.md

Q4M Bundle

This is a client of Q4M to use in Symfony2 as a Bundle

Installation

1) Add the following lines in your deps file

[SinyQ4MBundle]
    git=git://github.com/s-edy/SinyQ4MBundle.git
    target=bundles/Siny/Q4MBundle

2) Run venders scpript

$ php bin/venders install

3) Add the Siny namespace to your autoloader

<?php
// app/autoload.php

$loader->registerNamespaces(array(
	// ...
	'Siny'             => __DIR__.'/../vendor/bundles',
));

4) Add this bundle to your application's kernel

<?php
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
        	// ...
            new Siny\Q4MBundle\SinyQ4MBundle(),
        );

Set up in order to unit test

1) Create new user, database, and table for testing Q4MBundle

$ mysql -uroot mysql
GRANT ALL ON q4mtest.* TO q4mtestuser@localhost IDENTIFIED BY 'q4mtestpassword';
$ mysqladmin -uroot flush-privileges
$ mysql -uq4mtestuser -pq4mtestpassword
CREATE DATABASE IF NOT EXISTS q4mtest DEFAULT CHARSET UTF8;
use q4mtest;
CREATE TABLE `q4mtest` (
  `id` int(11) NOT NULL,
  `message` varchar(255) DEFAULT NULL,
  `priority` tinyint(3) unsigned NOT NULL DEFAULT '10'
) ENGINE=QUEUE DEFAULT CHARSET=utf8;
CREATE TABLE `q4mtest_row_priority` (
  `id` int(11) NOT NULL,
  `message` varchar(255) DEFAULT NULL,
  `priority` tinyint(3) unsigned NOT NULL DEFAULT '10'
) ENGINE=QUEUE DEFAULT CHARSET=utf8;