1 | <?php |
||
8 | class ActionListResource { |
||
9 | |||
10 | /** @var WebApplication */ |
||
11 | private $app; |
||
12 | |||
13 | /** @var BreadCrumbsTrail */ |
||
14 | private $crumbs; |
||
15 | |||
16 | public function __construct(WebApplication $app, BreadCrumbsTrail $crumbs) { |
||
20 | |||
21 | /** |
||
22 | * @return string |
||
23 | */ |
||
24 | public function handleGet() { |
||
44 | |||
45 | private function assembleActions() { |
||
56 | } |
Instead of relying on
global
state, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state