Skip to content

Commit

Permalink
Merge pull request #4 from NaoyaMiyagawa/ver2
Browse files Browse the repository at this point in the history
fix for cakephp4
  • Loading branch information
tutida authored Aug 4, 2020
2 parents 8b43a30 + 65d55a5 commit f84c69c
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']);
}

/**
Expand Down

0 comments on commit f84c69c

Please sign in to comment.