* renderRegion() * draft and published-state handling * document and placement scheduling * disabled-placement filtering * ordered region rendering * safe fallback when composition tables or document views are missing * compatibility with common alternative column names
30 lines
815 B
PHP
30 lines
815 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Content\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\Content\Console\InstallSaaslandContent;
|
|
use Modules\Content\Services\PageRenderer;
|
|
|
|
final class ContentServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->mergeConfigFrom(__DIR__.'/../Config/config.php', 'content');
|
|
$this->app->singleton(PageRenderer::class);
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
$this->loadRoutesFrom(__DIR__.'/../Routes/web.php');
|
|
$this->loadViewsFrom(__DIR__.'/../Resources/views', 'content');
|
|
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
|
|
|
|
if ($this->app->runningInConsole()) {
|
|
$this->commands([InstallSaaslandContent::class]);
|
|
}
|
|
}
|
|
}
|