for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Abacaphiliac\ZendPhpDotEnv\Diagnostics;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class RequireEnvFactory implements FactoryInterface
{
/**
* Create service
*
* @param ServiceLocatorInterface $serviceLocator
* @return RequireReadableFile
*/
public function createService(ServiceLocatorInterface $serviceLocator)
return new RequireReadableFile(array(
getcwd() . '/.env',
));
}