Passed
Push — master ( 240c83...03f39b )
by Mathias
06:41
created

DateFormatHelperFactory::createService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
ccs 0
cts 5
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
 * @license   MIT
8
 */
9
10
namespace Core\View\Helper\Service;
11
12
use Interop\Container\ContainerInterface;
13
use Laminas\ServiceManager\Factory\FactoryInterface;
14
use Laminas\I18n\View\Helper\DateFormat;
15
use Locale;
16
17
/**
18
 * Hybridauth authentication adapter factory
19
 */
20
class DateFormatHelperFactory implements FactoryInterface
21
{
22
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
23
    {
24
        $helper = new DateFormat();
25
        $helper->setLocale(Locale::DEFAULT_LOCALE);
26
        return $helper;
27
    }
28
}
29