Skip to content

Commit 6634719

Browse files
committed
uses Nette\SmartObject
1 parent 209e227 commit 6634719

25 files changed

+65
-27
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"nette/http": "~2.2",
2020
"nette/reflection": "~2.2",
2121
"nette/security": "~2.2",
22-
"nette/utils": "~2.2"
22+
"nette/utils": "~2.4"
2323
},
2424
"suggest": {
2525
"nette/forms": "Allows to use Nette\\Application\\UI\\Form",

src/Application/Application.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* Front Controller.
1515
*/
16-
class Application extends Nette\Object
16+
class Application
1717
{
18+
use Nette\SmartObject;
19+
1820
/** @var int */
1921
public static $maxLoop = 20;
2022

src/Application/ErrorPresenter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
/**
1616
* Default Error Presenter.
1717
*/
18-
class ErrorPresenter extends Nette\Object implements Application\IPresenter
18+
class ErrorPresenter implements Application\IPresenter
1919
{
20+
use Nette\SmartObject;
21+
2022
/** @var ILogger|NULL */
2123
private $logger;
2224

src/Application/LinkGenerator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* Link generator.
1515
*/
16-
class LinkGenerator extends Nette\Object
16+
class LinkGenerator
1717
{
18+
use Nette\SmartObject;
19+
1820
/** @var IRouter */
1921
private $router;
2022

src/Application/MicroPresenter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
/**
1818
* Micro presenter.
1919
*/
20-
class MicroPresenter extends Nette\Object implements Application\IPresenter
20+
class MicroPresenter implements Application\IPresenter
2121
{
22+
use Nette\SmartObject;
23+
2224
/** @var Nette\DI\Container|NULL */
2325
private $context;
2426

src/Application/PresenterFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* Default presenter loader.
1515
*/
16-
class PresenterFactory extends Nette\Object implements IPresenterFactory
16+
class PresenterFactory implements IPresenterFactory
1717
{
18+
use Nette\SmartObject;
19+
1820
/** @var array[] of module => splited mask */
1921
private $mapping = [
2022
'*' => ['', '*Module\\', '*Presenter'],

src/Application/Request.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
* @property array $files
1919
* @property string|NULL $method
2020
*/
21-
class Request extends Nette\Object
21+
class Request
2222
{
23+
use Nette\SmartObject;
24+
2325
/** method */
2426
const FORWARD = 'FORWARD';
2527

src/Application/Responses/CallbackResponse.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* Callback response.
1515
*/
16-
class CallbackResponse extends Nette\Object implements Nette\Application\IResponse
16+
class CallbackResponse implements Nette\Application\IResponse
1717
{
18+
use Nette\SmartObject;
19+
1820
/** @var callable */
1921
private $callback;
2022

src/Application/Responses/FileResponse.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* File download response.
1515
*/
16-
class FileResponse extends Nette\Object implements Nette\Application\IResponse
16+
class FileResponse implements Nette\Application\IResponse
1717
{
18+
use Nette\SmartObject;
19+
1820
/** @var string */
1921
private $file;
2022

src/Application/Responses/ForwardResponse.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* Forwards to new request.
1515
*/
16-
class ForwardResponse extends Nette\Object implements Nette\Application\IResponse
16+
class ForwardResponse implements Nette\Application\IResponse
1717
{
18+
use Nette\SmartObject;
19+
1820
/** @var Nette\Application\Request */
1921
private $request;
2022

0 commit comments

Comments
 (0)