kayue/KayueWordpressBundle — pull request #48 by kayue (2014-09-17 15:27:56+00:00)
Title: [WIP] Code revamp.

- [x] Use connection, do not rely on entity manager.
- [ ] Make all configuration optional.
- [ ] Separate Repository and Manager.
- [ ] Do not mix business in model.
- [x] Use `ManagerRegistry` to replace the current blog manager.

#### Multisite usage

Before:

```php
$anotherBlog = $blogManager->findBlogById(2)->getEntityManager();
$posts = $anotherBlog->getRepository('KayueWordpressBundle:Post')->findOneById(1);
```

After:

```php
$manager = $this->get('kayue_wordpress')->getManager(2);
$post = $manager->getRepository('KayueWordpressBundle:Post')->findOneById(1);
```