GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( d27e94...54e4b3 )
by Alexander
02:17
created

TransactionManagerFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of the prooph/php-ddd-cargo-sample.
4
 * (c) Alexander Miertsch <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 * 
9
 * Date: 27.03.14 - 20:27
10
 */
11
declare(strict_types = 1);
12
13
namespace Codeliner\CargoBackend\Infrastructure\Container\Infrastructure;
14
15
use Codeliner\CargoBackend\Infrastructure\Persistence\Transaction\TransactionManager;
16
use Interop\Container\ContainerInterface;
17
18
/**
19
 * Class TransactionManagerFactory
20
 *
21
 * @package Codeliner\CargoBackend\Infrastructure\Persistence\Transaction
22
 * @author Alexander Miertsch <[email protected]>
23
 */
24
final class TransactionManagerFactory
25
{
26
    /**
27
     * Create service
28
     *
29
     * @param ContainerInterface $container
30
     * @return TransactionManager
31
     */
32
    public function __invoke(ContainerInterface $container): TransactionManager
33
    {
34
        return new TransactionManager($container->get('doctrine.entitymanager.orm_default'));
35
    }
36
}
37