Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 8034028

Browse files
committed
uses Nette\SmartObject & StrictClass
1 parent 0beb800 commit 8034028

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

app/forms/FormFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
use Nette\Application\UI\Form;
77

88

9-
class FormFactory extends Nette\Object
9+
class FormFactory
1010
{
11+
use Nette\SmartObject;
1112

1213
/**
1314
* @return Form

app/forms/SignFormFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
use Nette\Security\User;
88

99

10-
class SignFormFactory extends Nette\Object
10+
class SignFormFactory
1111
{
12+
use Nette\SmartObject;
13+
1214
/** @var FormFactory */
1315
private $factory;
1416

app/model/UserManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
/**
1010
* Users management.
1111
*/
12-
class UserManager extends Nette\Object implements Nette\Security\IAuthenticator
12+
class UserManager implements Nette\Security\IAuthenticator
1313
{
14+
use Nette\SmartObject;
15+
1416
const
1517
TABLE_NAME = 'users',
1618
COLUMN_ID = 'id',

app/presenters/ErrorPresenter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
use Tracy\ILogger;
77

88

9-
class ErrorPresenter extends Nette\Object implements Nette\Application\IPresenter
9+
class ErrorPresenter implements Nette\Application\IPresenter
1010
{
11+
use Nette\SmartObject;
12+
1113
/** @var ILogger */
1214
private $logger;
1315

app/router/RouterFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
class RouterFactory
1111
{
12+
use Nette\StaticClass;
1213

1314
/**
1415
* @return Nette\Application\IRouter

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"nette/robot-loader": "^2.3",
2929
"nette/safe-stream": "^2.3",
3030
"nette/security": "^2.3",
31-
"nette/utils": "^2.3",
31+
"nette/utils": "^2.4",
3232
"latte/latte": "^2.3",
3333
"tracy/tracy": "^2.3",
3434
"dg/adminer-custom": "^1.6"

0 commit comments

Comments
 (0)