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

Commit

Permalink
uses Nette\SmartObject & StaticClass
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 11, 2016
1 parent 0beb800 commit 3f33034
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/forms/FormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
use Nette\Application\UI\Form;


class FormFactory extends Nette\Object
class FormFactory
{
use Nette\SmartObject;

/**
* @return Form
Expand Down
4 changes: 3 additions & 1 deletion app/forms/SignFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
use Nette\Security\User;


class SignFormFactory extends Nette\Object
class SignFormFactory
{
use Nette\SmartObject;

/** @var FormFactory */
private $factory;

Expand Down
4 changes: 3 additions & 1 deletion app/model/UserManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
/**
* Users management.
*/
class UserManager extends Nette\Object implements Nette\Security\IAuthenticator
class UserManager implements Nette\Security\IAuthenticator
{
use Nette\SmartObject;

const
TABLE_NAME = 'users',
COLUMN_ID = 'id',
Expand Down
4 changes: 3 additions & 1 deletion app/presenters/ErrorPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
use Tracy\ILogger;


class ErrorPresenter extends Nette\Object implements Nette\Application\IPresenter
class ErrorPresenter implements Nette\Application\IPresenter
{
use Nette\SmartObject;

/** @var ILogger */
private $logger;

Expand Down
1 change: 1 addition & 0 deletions app/router/RouterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class RouterFactory
{
use Nette\StaticClass;

/**
* @return Nette\Application\IRouter
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"nette/robot-loader": "^2.3",
"nette/safe-stream": "^2.3",
"nette/security": "^2.3",
"nette/utils": "^2.3",
"nette/utils": "^2.4",
"latte/latte": "^2.3",
"tracy/tracy": "^2.3",
"dg/adminer-custom": "^1.6"
Expand Down

0 comments on commit 3f33034

Please sign in to comment.