| @@ 51-58 (lines=8) @@ | ||
| 48 | * @param MarkdownDocumentParser $mdDocumentParser |
|
| 49 | * @param array $config |
|
| 50 | */ |
|
| 51 | public function __construct(ContentCreator $contentCreator, MarkdownDocumentParser $mdDocumentParser, |
|
| 52 | array $config, string $contentDir) |
|
| 53 | { |
|
| 54 | $this->contentCreator = $contentCreator; |
|
| 55 | $this->mdDocumentParser = $mdDocumentParser; |
|
| 56 | $this->config = $config; |
|
| 57 | $this->contentDir = rtrim($contentDir, '/'); |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * Get created content type |
|
| @@ 60-68 (lines=9) @@ | ||
| 57 | * @param ContentCreator $contentCreator |
|
| 58 | * @param MarkdownDocumentParser $mdDocumentParser |
|
| 59 | */ |
|
| 60 | public function __construct(MarkdownFileIterator $markdownFileIterator, ContentCreator $contentCreator, |
|
| 61 | MarkdownDocumentParser $mdDocumentParser, array $markdownOptions) |
|
| 62 | { |
|
| 63 | $this->markdownFileIterator = $markdownFileIterator; |
|
| 64 | $this->contentCreator = $contentCreator; |
|
| 65 | $this->mdDocumentParser = $mdDocumentParser; |
|
| 66 | $this->markdownOptions = $markdownOptions; |
|
| 67 | $this->contentDir = $markdownOptions['content_dir']; |
|
| 68 | } |
|
| 69 | ||
| 70 | public function __invoke() |
|
| 71 | { |
|