This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Integrate Snoopy into Symfony 2.1

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Integrate Snoopy into Symfony 2.1

by taylorr » Sat Oct 13, 2012 4:01 am

Just updated to Symfony 2.1 and found out that the previous autoload is no working as I expected.

I have searched a few topics in Google but sounds very complicated, involving modifying composer.json.

I tried to directly require Snoopy in my Repository (where Snoopy lib is used) like this:

Code: Select all
require_once 'Snoopy.class.php';
...
class BookRepository extends EntityRepository
{
    private function getDoubanRemote($isbn)
    {
        $s = new Snoopy();
        ...
    }
}


But not good.

1. Any hint?
2. Or what existing bundles can be an alternate?
Develop with Symfony, PHP, MySQL
User avatar
taylorr
Member
 
Posts: 48
Joined: Fri Jan 16, 2009 10:08 am
Location: Suzhou, China