Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class HistoryController extends ResourcesController |
||
25 | { |
||
26 | /** |
||
27 | * @inheritDoc |
||
28 | */ |
||
29 | protected $_defaultConfig = [ |
||
30 | 'allowedAssociations' => [ |
||
31 | 'user' => ['users'], |
||
32 | ], |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | */ |
||
38 | public function initialize(): void |
||
39 | { |
||
40 | $this->modelClass = (string)Configure::read('History.table', 'History'); |
||
41 | |||
42 | parent::initialize(); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | protected function setRelationshipsAllowedMethods(Association $association) |
||
51 | } |
||
52 | } |
||
53 |