Skip to content

Commit c1efd04

Browse files
committed
Updated librarian-core
1 parent f7dc3cf commit c1efd04

File tree

4 files changed

+170
-132
lines changed

4 files changed

+170
-132
lines changed

Command/Build/DefaultController.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,21 @@
44

55
use Librarian\Builder\StaticBuilder;
66
use Librarian\ContentType;
7+
use Librarian\Exception\ContentNotFoundException;
78
use Librarian\Provider\ContentServiceProvider;
89
use Minicli\Command\CommandController;
10+
use Twig\Error\LoaderError;
11+
use Twig\Error\RuntimeError;
12+
use Twig\Error\SyntaxError;
913

1014
class DefaultController extends CommandController
1115
{
16+
/**
17+
* @throws ContentNotFoundException
18+
* @throws RuntimeError
19+
* @throws LoaderError
20+
* @throws SyntaxError
21+
*/
1222
public function handle(): void
1323
{
1424
$outputDir = $this->getApp()->config->output_path;
@@ -26,7 +36,7 @@ public function handle(): void
2636
/** @var ContentType $contentType */
2737
foreach ($contentTypes as $contentType) {
2838
$this->info("Building content type '$contentType->slug'");
29-
$builder->buildContentType($contentType->slug);
39+
$builder->buildContentType($contentType);
3040
}
3141

3242
$this->info("Building tag pages");

0 commit comments

Comments
 (0)