File tree Expand file tree Collapse file tree 4 files changed +170
-132
lines changed
Expand file tree Collapse file tree 4 files changed +170
-132
lines changed Original file line number Diff line number Diff line change 44
55use Librarian \Builder \StaticBuilder ;
66use Librarian \ContentType ;
7+ use Librarian \Exception \ContentNotFoundException ;
78use Librarian \Provider \ContentServiceProvider ;
89use Minicli \Command \CommandController ;
10+ use Twig \Error \LoaderError ;
11+ use Twig \Error \RuntimeError ;
12+ use Twig \Error \SyntaxError ;
913
1014class 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 " );
You can’t perform that action at this time.
0 commit comments