````php
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

$definition = new Definition('Acme\BlogBundle\Entity\Repository\PostRepository', array(
    'Acme\BlogBundle\Entity\Blog',
));
$definition->setFactoryService('doctrine.orm.entity_manager');
$definition->setFactoryMethod('getRepository');
$definition->addMethodCall('setLogger', array(new Reference('logger')));

$container->setDefinition('acme.blog.repository.event', $definition);
````