Skip to content

Commit

Permalink
Support CakePHP ~3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tutida committed Aug 27, 2020
1 parent 8b43a30 commit 92d2049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/PackComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PackComponent extends Component
*/
public function beforeRender(Event $event)
{
$event->subject->helpers += ['Pack.Pack'];
$event->getSubject()->viewBuilder()->setHelpers(['Pack.Pack']);
}

/**
Expand Down

0 comments on commit 92d2049

Please sign in to comment.