#171 Redo the configuration layer to add a ConfigBuilder and group configuration parts

Cette révision appartient à :
Stéphane Goetz
2019-12-05 21:25:58 +01:00
Parent 688de1d5b9
révision b5633e93c7
47 fichiers modifiés avec 1177 ajouts et 710 suppressions

Voir le fichier

@ -127,7 +127,7 @@ class Directory extends Entry implements \ArrayAccess, \IteratorAggregate
}
public function getLocalIndexPage() {
$index_key = $this->getConfig()['index_key'];
$index_key = $this->getConfig()->getIndexKey();
if (isset($this->children[$index_key])) {
return $this->children[$index_key];
@ -141,8 +141,6 @@ class Directory extends Entry implements \ArrayAccess, \IteratorAggregate
*/
public function getIndexPage(): ?Content
{
$index_key = $this->getConfig()['index_key'];
if ($this->getLocalIndexPage()) {
return $this->getLocalIndexPage();
}
@ -161,7 +159,7 @@ class Directory extends Entry implements \ArrayAccess, \IteratorAggregate
public function seekFirstPage(): ?Content
{
if ($this instanceof self) {
$index_key = $this->getConfig()['index_key'];
$index_key = $this->getConfig()->getIndexKey();
if (isset($this->children[$index_key])) {
return $this->children[$index_key];
}