1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 
<?php
namespace Omeka\Service\Delegator;

use Interop\Container\ContainerInterface;
use Omeka\I18n\Translator;
use Zend\ServiceManager\Factory\DelegatorFactoryInterface;

class TranslatorDelegatorFactory implements DelegatorFactoryInterface
{
    public function __invoke(ContainerInterface $container, $name,
        callable $callback, array $options = null
    ) {
        return new Translator($callback());
    }
}