Skip to content

Commit

Permalink
Workaround for possible missed $app property in override for plugin tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Jul 1, 2022
1 parent ce5f12c commit cae74fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/src/Plugin/CMSPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,12 @@ protected function getApplication(): ?CMSApplicationInterface
*/
public function setApplication(CMSApplicationInterface $application): void
{
// @todo: Workaround for possible missed $app property in override #38153, #38060. Remove in 5.0.
if (empty($this->app))
{
$this->app = $application;
}

$this->application = $application;
}
}

0 comments on commit cae74fd

Please sign in to comment.