mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
53 lines
1.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
*/
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Utils\CssInlinerPlugin;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class MailCssInlinerServiceProvider extends ServiceProvider
|
|
{
|
|
// Thanks to @fedeisas/laravel-mail-css-inliner
|
|
|
|
/**
|
|
* Bootstrap the application events.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
$this->publishes([
|
|
__DIR__.'/../config/css-inliner.php' => base_path('config/css-inliner.php'),
|
|
], 'config');
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
// $this->app->singleton(CssInlinerPlugin::class, function ($app) {
|
|
// return new CssInlinerPlugin([]);
|
|
// });
|
|
|
|
// $this->app->singleton(CssInlinerPlugin::class, function ($app) {
|
|
// return new CssInlinerPlugin([]);
|
|
// });
|
|
|
|
// $this->app->bind(CssInlinerPlugin::class, function ($app) {
|
|
// return new CssInlinerPlugin([]);
|
|
// });
|
|
}
|
|
}
|