Files
firefly-iii/app/Providers/AppServiceProvider.php

53 lines
995 B
PHP
Raw Normal View History

<?php
/**
* AppServiceProvider.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
2016-02-05 12:08:25 +01:00
declare(strict_types = 1);
namespace FireflyIII\Providers;
2015-02-06 04:39:52 +01:00
use Illuminate\Support\ServiceProvider;
use URL;
2016-04-25 18:43:09 +02:00
/**
* Class AppServiceProvider
*
* @package FireflyIII\Providers
*/
2015-02-11 07:35:10 +01:00
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
// force root URL.
$forcedUrl = env('APP_FORCE_ROOT', '');
if (strlen($forcedUrl) > 0) {
URL::forceRootUrl($forcedUrl);
}
// force https urls
if (env('APP_FORCE_SSL', false)) {
URL::forceSchema('https');
}
2015-02-11 07:35:10 +01:00
}
2015-02-06 04:39:52 +01:00
2015-02-11 07:35:10 +01:00
/**
* Register any application services.
*
* @return void
*/
public function register()
{
}
2015-02-06 04:39:52 +01:00
}