<?php
namespace Koselig\Providers;
use Illuminate\Support\ServiceProvider;
use Koselig\Auth\AuthServiceProvider;
use Koselig\Hashing\HashServiceProvider;
use Koselig\Http\Request;
use Koselig\Mail\WordpressMailServiceProvider;
use Koselig\Routing\RoutingServiceProvider;
* Registers all the other service providers used by this package.
*
* @author Jordan Doyle <jordan@doyle.wf>
*/
class KoseligServiceProvider extends ServiceProvider
{
* Bootstrap any application services.
*
* @return void
*/
public function register()
{
$this->app->alias('request', Request::class);
$this->app->register(WordpressMailServiceProvider::class);
$this->app->register(WordpressServiceProvider::class);
$this->app->register(ConfigServiceProvider::class);
$this->app->register(QueryServiceProvider::class);
$this->app->register(WordpressTemplatingServiceProvider::class);
$this->app->register(RoutingServiceProvider::class);
$this->app->register(AuthServiceProvider::class);
$this->app->register(HashServiceProvider::class);
}
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__ . '/../../public/wp-config.php' => public_path(),
], 'public');
}
}