Skip to content

Commit 9a1d6c7

Browse files
committed
Code chapter 3
Signed-off-by: Howriq <[email protected]>
1 parent 97e055e commit 9a1d6c7

File tree

3 files changed

+15
-47
lines changed

3 files changed

+15
-47
lines changed

config/autoload/local.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/Book/src/ConfigProvider.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function __invoke(): array
4343
return [
4444
'dependencies' => $this->getDependencies(),
4545
'doctrine' => $this->getDoctrineConfig(),
46+
'templates' => $this->getTemplates(),
4647
];
4748
}
4849

@@ -84,4 +85,18 @@ private function getDoctrineConfig(): array
8485
],
8586
];
8687
}
88+
89+
/**
90+
@return array{
91+
* paths: array{page: array{literal-string&non-falsy-string}}
92+
* }
93+
*/
94+
private function getTemplates(): array
95+
{
96+
return [
97+
'paths' => [
98+
'page' => [__DIR__ . '/../templates/page'],
99+
],
100+
];
101+
}
87102
}

0 commit comments

Comments
 (0)