firefly-iii/app/Providers/TestingServiceProvider.php

29 lines
468 B
PHP
Raw Normal View History

2015-02-22 08:40:13 -06:00
<?php
namespace FireflyIII\Providers;
use Illuminate\Support\ServiceProvider;
/**
* Class TestingServiceProvider
*
* @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
}