Skip to content

Commit ac30c9f

Browse files
author
Ondřej Pech
committed
Replace Kdyby\StrictObject for Nette\SmartObject
1 parent 29cbb00 commit ac30c9f

19 files changed

+19
-19
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"nette/di": "^2.4.10 || ^3.0",
2222
"nette/routing": "^3.0.0",
2323
"tracy/tracy": "^2.5 || ^3.0",
24-
"kdyby/strict-objects": "^2.0",
24+
"nette/utils": "~3.1.0",
2525
"symfony/console": "~2.3 || ^3.0 || < 4.3"
2626
},
2727
"require-dev": {

src/Application.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
class Application extends \Symfony\Component\Console\Application
2828
{
2929

30-
use \Kdyby\StrictObjects\Scream;
30+
use \Nette\SmartObject;
3131

3232
public const CLI_SAPI = 'cli';
3333
public const INPUT_ERROR_EXIT_CODE = 253;

src/CliResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class CliResponse implements \Nette\Application\IResponse
2020
{
2121

22-
use \Kdyby\StrictObjects\Scream;
22+
use \Nette\SmartObject;
2323

2424
/**
2525
* @var int

src/CliRouter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class CliRouter implements \Nette\Routing\Router
2121
{
2222

23-
use \Kdyby\StrictObjects\Scream;
23+
use \Nette\SmartObject;
2424

2525
/**
2626
* @var string[]

src/ContainerHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class ContainerHelper extends \Symfony\Component\Console\Helper\Helper
1818
{
1919

20-
use \Kdyby\StrictObjects\Scream;
20+
use \Nette\SmartObject;
2121

2222
/**
2323
* @var \Nette\DI\Container

src/DI/BootstrapHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
class BootstrapHelper
4040
{
4141

42-
use \Kdyby\StrictObjects\Scream;
42+
use \Nette\SmartObject;
4343

4444
/**
4545
* @param \Nette\Configurator $configurator

src/Helpers/PresenterHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class PresenterHelper extends \Symfony\Component\Console\Helper\Helper
1818
{
1919

20-
use \Kdyby\StrictObjects\Scream;
20+
use \Nette\SmartObject;
2121

2222
/**
2323
* @var \Nette\Application\Application

src/StringOutput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class StringOutput extends \Symfony\Component\Console\Output\Output
1616
{
1717

18-
use \Kdyby\StrictObjects\Scream;
18+
use \Nette\SmartObject;
1919

2020
/**
2121
* @var string

tests/KdybyTests/Console/data/AmbiguousCommand1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class AmbiguousCommand1 extends \Symfony\Component\Console\Command\Command
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
protected function configure()
1717
{

tests/KdybyTests/Console/data/AmbiguousCommand2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class AmbiguousCommand2 extends \Symfony\Component\Console\Command\Command
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
protected function configure()
1717
{

tests/KdybyTests/Console/data/ArgCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class ArgCommand extends \Symfony\Component\Console\Command\Command
1414
{
1515

16-
use \Kdyby\StrictObjects\Scream;
16+
use \Nette\SmartObject;
1717

1818
protected function configure()
1919
{

tests/KdybyTests/Console/data/CliAppTester.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class CliAppTester
2020
{
2121

22-
use \Kdyby\StrictObjects\Scream;
22+
use \Nette\SmartObject;
2323

2424
/**
2525
* @var \Symfony\Component\Console\Application

tests/KdybyTests/Console/data/CommandMock.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class CommandMock extends \Symfony\Component\Console\Command\Command
88
{
99

10-
use \Kdyby\StrictObjects\Scream;
10+
use \Nette\SmartObject;
1111

1212
protected function configure()
1313
{

tests/KdybyTests/Console/data/ConsoleListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class ConsoleListener implements \Kdyby\Events\Subscriber
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
/**
1717
* @var string[][]

tests/KdybyTests/Console/data/NamespaceAmbiguousCommand1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class NamespaceAmbiguousCommand1 extends \Symfony\Component\Console\Command\Command
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
protected function configure()
1717
{

tests/KdybyTests/Console/data/NamespaceAmbiguousCommand2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class NamespaceAmbiguousCommand2 extends \Symfony\Component\Console\Command\Command
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
protected function configure()
1717
{

tests/KdybyTests/Console/data/SameArgsCommandOne.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class SameArgsCommandOne extends \Symfony\Component\Console\Command\Command
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
/**
1717
* @var \KdybyTests\Console\ArgCommand

tests/KdybyTests/Console/data/SameArgsCommandTwo.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class SameArgsCommandTwo extends \Symfony\Component\Console\Command\Command
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
/**
1717
* @var \KdybyTests\Console\ArgCommand

tests/KdybyTests/Console/data/TypoCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class TypoCommand extends \Symfony\Component\Console\Command\Command
1212
{
1313

14-
use \Kdyby\StrictObjects\Scream;
14+
use \Nette\SmartObject;
1515

1616
protected function configure()
1717
{

0 commit comments

Comments
 (0)