@@ 111-118 (lines=8) @@ | ||
108 | * @param User|null $user |
|
109 | * @param string $appPath |
|
110 | */ |
|
111 | public function __construct(\PDO $pdo, array $post, Cookie $cookie, string $appPath, User $user = null) |
|
112 | { |
|
113 | $this->pdo = $pdo; |
|
114 | $this->post = $post; |
|
115 | $this->cookie = $cookie; |
|
116 | $this->user = $user; |
|
117 | $this->appPath = $appPath; |
|
118 | } |
|
119 | ||
120 | /** |
|
121 | * @return string Controller name without namespace |
@@ 53-60 (lines=8) @@ | ||
50 | * @param string $appPath |
|
51 | * @param User|null $user |
|
52 | */ |
|
53 | public function __construct(\PDO $pdo, array $post, Cookie $cookie, string $appPath, User $user = null) |
|
54 | { |
|
55 | $this->pdo = $pdo; |
|
56 | $this->post = $post; |
|
57 | $this->cookie = $cookie; |
|
58 | $this->user = $user; |
|
59 | $this->appPath = $appPath; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Initialize controller |