firefly-iii/app/Providers/TestingServiceProvider.php

30 lines
491 B
PHP
Raw Normal View History

2015-02-22 08:40:13 -06:00
<?php
namespace FireflyIII\Providers;
use Illuminate\Support\ServiceProvider;
/**
* Class TestingServiceProvider
*
2015-05-25 12:58:13 -05:00
* @codeCoverageIgnore
2015-02-22 08:40:13 -06:00
* @package FireflyIII\Providers
*/
2015-02-23 14:19:16 -06:00
class TestingServiceProvider extends ServiceProvider
{
2015-02-22 08:40:13 -06:00
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
2015-02-23 14:19:16 -06:00
if ($this->app->environment() == 'testing') {
2015-02-22 08:40:13 -06:00
$this->app['config']['session.driver'] = 'native';
}
}
2015-03-29 01:14:32 -05:00
}