mirror of
https://github.com/daledavies/jump.git
synced 2026-05-06 23:56:10 +02:00
Added CSRF check in weatherdata API
This commit is contained in:
@@ -14,7 +14,12 @@ abstract class AbstractPage {
|
||||
* @param \Jump\Cache $cache
|
||||
* @param string|null $generic param, passed from router.
|
||||
*/
|
||||
public function __construct(protected \Jump\Config $config, protected \Jump\Cache $cache, protected ?string $param = null) {
|
||||
public function __construct(
|
||||
protected \Jump\Config $config,
|
||||
protected \Jump\Cache $cache,
|
||||
protected \Nette\Http\Session $session,
|
||||
protected ?string $param = null
|
||||
){
|
||||
$this->hastags = false;
|
||||
$this->mustache = new \Mustache_Engine([
|
||||
'loader' => new \Mustache_Loader_FilesystemLoader($this->config->get('templatedir')),
|
||||
|
||||
Reference in New Issue
Block a user