<?php
namespace MvMidia\Factory;

use MvMidia\Service\AudioService;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class AudioServiceFactory
  implements FactoryInterface
{
  public function createService(ServiceLocatorInterface $serviceLocator)
  {
    $entityManager = $serviceLocator->get('Doctrine\ORM\EntityManager');
    return new AudioService($entityManager);
  }

}
