Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 859 Bytes

1-installation.md

File metadata and controls

45 lines (33 loc) · 859 Bytes

Installation

Installation is a quick 3 step process:

  1. Download LeezyPheanstalkBundle using composer
  2. Enable the Bundle
  3. Configure your application's config.yml

Step 1: Require LeezyPheanstalkBundle

Tell composer to require this bundle by running:

$ composer require leezy/pheanstalk-bundle

Step 2: Enable the bundle - Symfony versions prior to 4.0

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Leezy\PheanstalkBundle\LeezyPheanstalkBundle(),
    );
}

Step 3: Configure your application's config.yml

Finally, add the following to your config.yml

# app/config/config.yml
leezy_pheanstalk:
    pheanstalks:
        primary:
            server: beanstalkd.domain.tld
            default: true