Completed
Pull Request — master (#11)
by Timothy
05:53
created

SuggestEnvFactory::createService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Abacaphiliac\ZendPhpDotEnv\Diagnostics;
4
5
use Zend\ServiceManager\FactoryInterface;
6
use Zend\ServiceManager\ServiceLocatorInterface;
7
8
class SuggestEnvFactory implements FactoryInterface
9
{
10
    /**
11
     * Create service
12
     *
13
     * @param ServiceLocatorInterface $serviceLocator
14
     * @return mixed
15
     */
16
    public function createService(ServiceLocatorInterface $serviceLocator)
17
    {
18
        return new SuggestReadableFile(array(
19
            getcwd() . '/.env',
20
        ));
21
    }
22
}
23