mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 13:44:58 -06:00
28 lines
475 B
PHP
28 lines
475 B
PHP
|
<?php
|
||
|
|
||
|
namespace FireflyIII\Providers;
|
||
|
|
||
|
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
||
|
/**
|
||
|
* Class TestingServiceProvider
|
||
|
*
|
||
|
* @package FireflyIII\Providers
|
||
|
*/
|
||
|
class TestingServiceProvider extends ServiceProvider {
|
||
|
|
||
|
/**
|
||
|
* Register the service provider.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function register()
|
||
|
{
|
||
|
if ($this->app->environment() == 'testing')
|
||
|
{
|
||
|
$this->app['config']['session.driver'] = 'native';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|