|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace Hyde\Console; |
|
6
|
|
|
|
|
7
|
|
|
use Illuminate\Support\ServiceProvider; |
|
8
|
|
|
|
|
9
|
|
|
/** |
|
10
|
|
|
* Register the HydeCLI console commands. |
|
11
|
|
|
*/ |
|
12
|
|
|
class ConsoleServiceProvider extends ServiceProvider |
|
13
|
|
|
{ |
|
14
|
|
|
public function register(): void |
|
15
|
|
|
{ |
|
16
|
|
|
$this->commands([ |
|
17
|
|
|
Commands\BuildRssFeedCommand::class, |
|
18
|
|
|
Commands\BuildSearchCommand::class, |
|
19
|
|
|
Commands\BuildSiteCommand::class, |
|
20
|
|
|
Commands\BuildSitemapCommand::class, |
|
21
|
|
|
Commands\RebuildStaticPageCommand::class, |
|
22
|
|
|
|
|
23
|
|
|
Commands\MakePageCommand::class, |
|
24
|
|
|
Commands\MakePostCommand::class, |
|
25
|
|
|
|
|
26
|
|
|
Commands\VendorPublishCommand::class, |
|
27
|
|
|
Commands\PublishHomepageCommand::class, |
|
28
|
|
|
Commands\PublishViewsCommand::class, |
|
29
|
|
|
Commands\UpdateConfigsCommand::class, |
|
30
|
|
|
Commands\PackageDiscoverCommand::class, |
|
31
|
|
|
|
|
32
|
|
|
Commands\RouteListCommand::class, |
|
33
|
|
|
Commands\ValidateCommand::class, |
|
34
|
|
|
Commands\ServeCommand::class, |
|
35
|
|
|
Commands\DebugCommand::class, |
|
36
|
|
|
|
|
37
|
|
|
Commands\ChangeSourceDirectoryCommand::class, |
|
38
|
|
|
]); |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
public function boot(): void |
|
42
|
|
|
{ |
|
43
|
|
|
// |
|
44
|
|
|
} |
|
45
|
|
|
} |
|
46
|
|
|
|