Skip to content
Permalink
Browse files

compatibility with Nette 3

  • Loading branch information...
dg committed Jan 25, 2017
1 parent f4239d6 commit a251a40afd20b3752be10386474585382d5a49b1
Showing with 5 additions and 10 deletions.
  1. +1 −2 CD-collection/app/model/Authenticator.php
  2. +4 −8 Fifteen/app/components/FifteenControl.php
@@ -25,10 +25,9 @@ public function __construct(Nette\Database\Context $database)
/**
* Performs an authentication.
* @return Nette\Security\Identity
* @throws Nette\Security\AuthenticationException
*/
public function authenticate(array $credentials)
public function authenticate(array $credentials): Security\IIdentity
{
list($username, $password) = $credentials;
$row = $this->database->table('users')->where('username', $username)->fetch();
@@ -119,11 +119,9 @@ public function render()
/**
* Loads params
* @param array
* @return void
* Loads params.
*/
public function loadState(array $params)
public function loadState(array $params): void
{
if (isset($params['order'])) {
$params['order'] = explode('.', (string) $params['order']);
@@ -141,11 +139,9 @@ public function loadState(array $params)
/**
* Save params
* @param array
* @return void
* Save params.
*/
public function saveState(array &$params)
public function saveState(array &$params): void
{
parent::saveState($params);
if (isset($params['order'])) {

0 comments on commit a251a40

Please sign in to comment.
You can’t perform that action at this time.