for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This Driver is a Laravel integration for the package php-mattermost-driver
* (https://github.com/gnello/php-mattermost-driver)
*
* For the full copyright and license information, please read the LICENSE.txt
* file that was distributed with this source code. For the full list of
* contributors, visit https://github.com/gnello/laravel-mattermost-driver/contributors
* God bless this mess too.
* @author Luca Agnello <[email protected]>
* @link https://api.mattermost.com/
*/
namespace Gnello\Mattermost\Laravel;
use Illuminate\Support\ServiceProvider;
* Class MattermostServiceProvider
* @package Gnello\Mattermost
class MattermostServiceProvider extends ServiceProvider
{
* Bootstrap the application services.
* @return void
public function boot()
$this->publishes([
__DIR__.'/config/mattermost.php' => config_path('mattermost.php'),
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
__DIR__.'/config/mattermost.php' => /** @scrutinizer ignore-call */ config_path('mattermost.php'),
]);
}
* Register the application services.
public function register()
$this->mergeConfigFrom(
__DIR__.'/config/mattermost.php', 'mattermost'
);
$this->app->singleton('mattermost', function($app) {
return new Driver($app);
});
$this->app->bind('mattermost.server', function ($app) {
return $app['mattermost']->server();