Skip to content

Commit 64d0c79

Browse files
committed
updated to latest librarian-core
1 parent 642d16b commit 64d0c79

File tree

2 files changed

+64
-126
lines changed

2 files changed

+64
-126
lines changed

Command/Build/DefaultController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace librarianphp\Build;
44

55
use Librarian\Builder\StaticBuilder;
6+
use Librarian\ContentType;
67
use Librarian\Provider\ContentServiceProvider;
78
use Minicli\Command\CommandController;
89

@@ -22,9 +23,10 @@ public function handle(): void
2223

2324
//Build content single pages
2425
$contentTypes = $content->getContentTypes();
26+
/** @var ContentType $contentType */
2527
foreach ($contentTypes as $contentType) {
26-
$this->getPrinter()->info("Building content type '$contentType'");
27-
$builder->buildContentType($contentType);
28+
$this->getPrinter()->info("Building content type '$contentType->slug'");
29+
$builder->buildContentType($contentType->slug);
2830
}
2931

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

0 commit comments

Comments
 (0)