Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- do not regenerate inject if exists
- Loading branch information
Showing
6 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/DIServiceAnnotationTests/Services/ExistingInject.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Wavevision\DIServiceAnnotationTests\Services; | ||
|
||
use Nette\SmartObject; | ||
use Wavevision\DIServiceAnnotation\DIService; | ||
|
||
/** | ||
* @DIService(generateInject=true) | ||
*/ | ||
class ExistingInject | ||
{ | ||
|
||
use SmartObject; | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
tests/DIServiceAnnotationTests/Services/InjectExistingInject.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php declare (strict_types = 1); | ||
|
||
namespace Wavevision\DIServiceAnnotationTests\Services; | ||
|
||
trait InjectExistingInject | ||
{ | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
tests/DIServiceAnnotationTests/expected/Services/InjectExistingInject.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php declare (strict_types = 1); | ||
|
||
namespace Wavevision\DIServiceAnnotationTests\Services; | ||
|
||
trait InjectExistingInject | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters