-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbootstrap.php
More file actions
27 lines (21 loc) · 809 Bytes
/
bootstrap.php
File metadata and controls
27 lines (21 loc) · 809 Bytes
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
<?php
use App\Listeners\GenerateSitemap;
use Mni\FrontYAML\Markdown\MarkdownParser;
use TightenCo\Jigsaw\Jigsaw;
use TightenCo\Jigsaw\Parsers\ParsedownExtraParser;
/** @var $container \Illuminate\Container\Container */
/** @var $events \TightenCo\Jigsaw\Events\EventBus */
/**
* You can run custom code at different stages of the build process by
* listening to the 'beforeBuild', 'afterCollections', and 'afterBuild' events.
*
* For example:
*
* $events->beforeBuild(function (Jigsaw $jigsaw) {
* // Your code here
* });
*/
$events->beforeBuild(\App\Extend\DocumentationImporter::class);
$events->afterCollections(\App\Extend\UpdateProviderNavigation::class);
$events->afterBuild(GenerateSitemap::class);
$container->bind(MarkdownParser::class, \App\Extend\HeaderIdMarkdownParser::class);