-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
29 lines (24 loc) · 1.13 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
use BrasilTranscrito\EventHandler\Post\PostProcessFilesAfterBuild;
use BrasilTranscrito\EventHandler\Category\GenerateCategoriesAfterCollections;
use BrasilTranscrito\EventHandler\Post\DecorateConfigWithLatestPostsAfterCollections;
use BrasilTranscrito\EventHandler\Post\GenerateRecommendedEpisodeListAfterCollections;
use BrasilTranscrito\Infrastructure\Application\Service\FileProcessing\JigsawGenerateRssFeed;
use Nawarian\JigsawSitemapPlugin\Listener\SitemapListener;
use TightenCo\Jigsaw\Jigsaw;
/** @var $container \Illuminate\Container\Container */
/** @var $events \TightenCo\Jigsaw\Events\EventBus */
$events->beforeBuild(function (Jigsaw $jigsaw) use ($container) {
$configureDependencyInjection = require __DIR__ . '/config/dependency-injection.php';
$configureDependencyInjection($container, $jigsaw);
});
$events->afterCollections([
GenerateCategoriesAfterCollections::class,
DecorateConfigWithLatestPostsAfterCollections::class,
GenerateRecommendedEpisodeListAfterCollections::class,
]);
$events->afterBuild([
SitemapListener::class,
JigsawGenerateRssFeed::class,
PostProcessFilesAfterBuild::class,
]);