Skip to content

Commit 160d18d

Browse files
committed
No page needed for MarkDownParser
1 parent b3a4d17 commit 160d18d

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

src/PHPFUI/InstaDoc/MarkDownParser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ class MarkDownParser
66
{
77
private \cebe\markdown\GithubMarkdown $parser;
88

9-
private \PHPFUI\Interfaces\Page $page;
10-
11-
public function __construct(\PHPFUI\Interfaces\Page $page)
9+
public function __construct()
1210
{
1311
$this->parser = new \cebe\markdown\GithubMarkdown();
14-
$this->page = $page;
1512
$this->parser->html5 = true;
1613
$this->parser->keepListStartNumber = true;
1714
$this->parser->enableNewlines = true;

src/PHPFUI/InstaDoc/Section/CodeCommon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct(\PHPFUI\InstaDoc\Controller $controller)
1414
{
1515
parent::__construct($controller);
1616
$this->factory = \phpDocumentor\Reflection\DocBlockFactory::createInstance();
17-
$this->parsedown = new \PHPFUI\InstaDoc\MarkDownParser($controller->getPage());
17+
$this->parsedown = new \PHPFUI\InstaDoc\MarkDownParser();
1818
}
1919

2020
/**

src/PHPFUI/InstaDoc/Section/Home.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public function generate(\PHPFUI\InstaDoc\PageInterface $page, string $fullClass
88
{
99
$container = new \PHPFUI\Container();
1010

11-
$parsedown = new \PHPFUI\InstaDoc\MarkDownParser($page);
11+
$parsedown = new \PHPFUI\InstaDoc\MarkDownParser();
1212

1313
$hr = '';
1414

src/PHPFUI/InstaDoc/Section/Landing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function generate(\PHPFUI\InstaDoc\PageInterface $page, string $namespace
1010

1111
$container->add($this->getBreadCrumbs($namespace));
1212

13-
$parsedown = new \PHPFUI\InstaDoc\MarkDownParser($page);
13+
$parsedown = new \PHPFUI\InstaDoc\MarkDownParser();
1414
$node = \PHPFUI\InstaDoc\NamespaceTree::findNamespace($namespace);
1515
$files = $node->getMDFiles();
1616

0 commit comments

Comments
 (0)