2017 © Pedro Peláez
 

library pheanstalk-bundle-extra

Additional classes for the LeezyPheanstalkBundle.

image

h4cc/pheanstalk-bundle-extra

Additional classes for the LeezyPheanstalkBundle.

  • Saturday, October 18, 2014
  • by h4cc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Quality Score Code Coverage HHVM Status, (*1)

h4cc/LeezyPheanstalkBundleExtra

Some extra classes to work with LeezyPheanstalkBundle., (*2)

This package currently contains:, (*3)

  • PrefixedTubePheanstalkProxy - A Pheanstalk Proxy for adding a Prefix to all used tubes.

Installation

Installing this package can be done with the following command:, (*4)

php composer.phar require h4cc/pheanstalk-bundle-extra:dev-master

Hint: Use a more stable version if available!, (*5)

PrefixedTubePheanstalkProxy

This Proxy is abled to prefix all tubes with a given string., (*6)

New Methods are:, (*7)

PrefixedTubePheanstalkProxy
    - setTubePrefix($prefix);
    - getTubePrefix();

Using a custom Proxy in Symfony2

Define the the proxy as a service:, (*8)

services.xml, (*9)

<service id="your_app.pheanstalk.proxy" class="h4cc\LeezyPheanstalkBundleExtra\Proxy\PrefixedTubePheanstalkProxy">
    <call method="setTubePrefix">
        <argument>your_app_</argument>
    </call>
</service>

or, (*10)

services.yml, (*11)

services:
    your_app.pheanstalk.proxy:
        class: "h4cc\LeezyPheanstalkBundleExtra\Proxy\PrefixedTubePheanstalkProxy"
        calls:
            - [ setTubePrefix, [ "your_app_" ] ]

Activate the proxy in the app/config/config.yml like this:, (*12)

leezy_pheanstalk:
    enabled: true
    pheanstalks:
        primary:
            server: 127.0.0.1
            port: 11300
            timeout: 60
            default: true
            proxy: your_app.pheanstalk.proxy

A cleaner way would be to define the TubePrefix String as a Parameter., (*13)

The Versions

18/10 2014

dev-master

9999999-dev https://github.com/h4cc/LeezyPheanstalkBundleExtra

Additional classes for the LeezyPheanstalkBundle.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 beanstalkd extra pheanstalk

18/10 2014

0.1.1

0.1.1.0 https://github.com/h4cc/LeezyPheanstalkBundleExtra

Additional classes for the LeezyPheanstalkBundle.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 beanstalkd extra pheanstalk

27/12 2013

0.1

0.1.0.0 https://github.com/h4cc/LeezyPheanstalkBundleExtra

Additional classes for the LeezyPheanstalkBundle.

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 beanstalkd extra pheanstalk