Skip to content

Commit

Permalink
Don’t pass kirby as property to models
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Dec 15, 2023
1 parent 2079d30 commit f74dfb1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Cms/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,6 @@ public function site(): Site
return $this->site ??= new Site([
'errorPageId' => $this->options['error'] ?? 'error',
'homePageId' => $this->options['home'] ?? 'home',
'kirby' => $this,
'url' => $this->url('index'),
]);
}
Expand Down
1 change: 0 additions & 1 deletion src/Cms/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public static function factory(array $files, Page|Site|User $parent): static

foreach ($files as $props) {
$props['collection'] = $collection;
$props['kirby'] = $kirby;
$props['parent'] = $parent;

$file = File::factory($props);
Expand Down
1 change: 0 additions & 1 deletion src/Cms/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public static function factory(
}

foreach ($pages as $props) {
$props['kirby'] = $kirby;
$props['parent'] = $parent;
$props['site'] = $site;
$props['isDraft'] = $draft ?? $props['isDraft'] ?? $props['draft'] ?? false;
Expand Down

0 comments on commit f74dfb1

Please sign in to comment.