armetiz/LeezyPheanstalkBundle

Use in SF 2.0

Closed this issue · 5 comments

I would like to use this bundle on a project under SF 2.0, which does not use composer.

Is this bundle compatible with SF 2.0 ?
If it is, how can I install it through deps file ?

Thanks a lot for your work and help!

@Schyzophrenic This bundle is Symfony 2.0 compliant.

Thanks @armetiz. Could you please tell me how I could install it using the deps file ? (or any other mean).

I am sorry if this seems to be a silly question, but I am not really use to git...

Try to use an other bundle's guide : https://github.com/FriendsOfSymfony/FOSUserBundle/blob/v1.2.1/Resources/doc/index.md
I'll be back next monday.

In deps file, try this

[LeezyPheanstalkBundle]
    git=git://github.com/armetiz/LeezyPheanstalkBundle.git
    target=bundles/Leezy/PheanstalkBundle

Also, don't forget to update your app/autoload.php & your app/AppKernel.php

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    // ...
    'Leezy' => __DIR__.'/../vendor/bundles',
));
<?php
// app/AppKernel.php

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

@Schyzophrenic let me know if it's okay for you.

Hello @armetiz,

Sorry for the late response I have been busy with other things.
I have managed to make it works thanks to your help.

For other readers, please note that I also had to add in my deps file

[pheanstalk]
        git=https://github.com/pda/pheanstalk
        target=/pheanstalk
        version=v1.1.0

and

require_once __DIR__.'/../vendor/pheanstalk/pheanstalk_init.php';

in my autoload.php file

Seems quite logical, but could be confusing for newcomers !

Thanks again for your help!