Skip to content

Commit 69b056e

Browse files
committed
uses Nette\SmartObject & StaticClass
1 parent 630a63b commit 69b056e

16 files changed

+44
-15
lines changed

src/Bridges/DITracy/ContainerPanel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
/**
1616
* Dependency injection container panel for Debugger Bar.
1717
*/
18-
class ContainerPanel extends Nette\Object implements Tracy\IBarPanel
18+
class ContainerPanel implements Tracy\IBarPanel
1919
{
20+
use Nette\SmartObject;
21+
2022
/** @var int */
2123
public static $compilationTime;
2224

src/DI/Compiler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
/**
1515
* DI container compiler.
1616
*/
17-
class Compiler extends Nette\Object
17+
class Compiler
1818
{
19+
use Nette\SmartObject;
20+
1921
/** @var CompilerExtension[] */
2022
private $extensions = [];
2123

src/DI/CompilerExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* Configurator compiling extension.
1515
*/
16-
abstract class CompilerExtension extends Nette\Object
16+
abstract class CompilerExtension
1717
{
18+
use Nette\SmartObject;
19+
1820
/** @var Compiler */
1921
protected $compiler;
2022

src/DI/Config/Adapters/IniAdapter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
/**
1515
* Reading and generating INI files.
1616
*/
17-
class IniAdapter extends Nette\Object implements Nette\DI\Config\IAdapter
17+
class IniAdapter implements Nette\DI\Config\IAdapter
1818
{
19+
use Nette\SmartObject;
20+
1921
/** @internal */
2022
const INHERITING_SEPARATOR = '<', // child < parent
2123
KEY_SEPARATOR = '.', // key nesting key1.key2.key3

src/DI/Config/Adapters/NeonAdapter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
/**
1717
* Reading and generating NEON files.
1818
*/
19-
class NeonAdapter extends Nette\Object implements Nette\DI\Config\IAdapter
19+
class NeonAdapter implements Nette\DI\Config\IAdapter
2020
{
21+
use Nette\SmartObject;
22+
2123
/** @internal */
2224
const INHERITING_SEPARATOR = '<', // child < parent
2325
PREVENT_MERGING = '!';

src/DI/Config/Adapters/PhpAdapter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
/**
1414
* Reading and generating PHP files.
1515
*/
16-
class PhpAdapter extends Nette\Object implements Nette\DI\Config\IAdapter
16+
class PhpAdapter implements Nette\DI\Config\IAdapter
1717
{
18+
use Nette\SmartObject;
1819

1920
/**
2021
* Reads configuration from PHP file.

src/DI/Config/Helpers.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77

88
namespace Nette\DI\Config;
99

10+
use Nette;
11+
1012

1113
/**
1214
* Configuration helpers.
1315
*/
1416
class Helpers
1517
{
16-
const EXTENDS_KEY = '_extends',
17-
OVERWRITE = TRUE;
18+
use Nette\StaticClass;
1819

20+
const
21+
EXTENDS_KEY = '_extends',
22+
OVERWRITE = TRUE;
1923

2024
/**
2125
* Merges configurations. Left has higher priority than right one.

src/DI/Config/Loader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
/**
1515
* Configuration file loader.
1616
*/
17-
class Loader extends Nette\Object
17+
class Loader
1818
{
19+
use Nette\SmartObject;
20+
1921
/** @internal */
2022
const INCLUDES_KEY = 'includes';
2123

src/DI/Container.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
/**
1414
* The dependency injection container default implementation.
1515
*/
16-
class Container extends Nette\Object
16+
class Container
1717
{
18+
use Nette\SmartObject;
19+
1820
const TAGS = 'tags';
1921
const TYPES = 'types';
2022
const SERVICES = 'services';

src/DI/ContainerBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
/**
1818
* Basic container builder.
1919
*/
20-
class ContainerBuilder extends Nette\Object
20+
class ContainerBuilder
2121
{
22+
use Nette\SmartObject;
23+
2224
const THIS_SERVICE = 'self',
2325
THIS_CONTAINER = 'container';
2426

0 commit comments

Comments
 (0)