-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from neos/feature/remove-injections
FEATURE: Remove injections of removed services
- Loading branch information
Showing
2 changed files
with
127 additions
and
1 deletion.
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
119 changes: 119 additions & 0 deletions
119
tests/Sets/ContentRepository90/Fixture/inject-removal.php.inc
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,119 @@ | ||
<?php | ||
|
||
namespace Neos\Rector\Test; | ||
|
||
use Neos\Flow\Annotations as Flow; | ||
use Neos\ContentRepository\Domain\Service\Context; | ||
|
||
class SomeClass extends AnotherClass | ||
{ | ||
/** | ||
* @Flow\Inject | ||
* @var \Neos\Neos\KeepThis | ||
*/ | ||
private $keepThisBecauseItDoesNotNeedToGetRemoved; | ||
|
||
/** | ||
* @var \Neos\Neos\Domain\Service\NodeSearchServiceInterface | ||
*/ | ||
private $keepThisBecauseNoInject; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\Neos\Domain\Service\NodeSearchServiceInterface | ||
*/ | ||
private $nodeSearchServiceInterface; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\Neos\Domain\Service\NodeSearchService | ||
*/ | ||
private $nodeSearchService; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Service\NodeTypeManager | ||
*/ | ||
protected $nodeTypeManagerNew; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Core\NodeType\NodeTypeManager | ||
*/ | ||
protected $nodeTypeManagerOld; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\Neos\Domain\Service\ContentContextFactory | ||
*/ | ||
protected $contentContextFactory; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Service\ContextFactoryInterface | ||
*/ | ||
protected $contentRepositoryContextFactoryInterface; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Service\ContextFactory | ||
*/ | ||
protected $contentRepositoryContextFactory; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Service\Context | ||
*/ | ||
protected $context; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\Neos\Domain\Service\ContentContext | ||
*/ | ||
protected $contentContext; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Repository\NodeDataRepository | ||
*/ | ||
protected $nodeDataRepository; | ||
|
||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Repository\WorkspaceRepository | ||
*/ | ||
protected $workspaceRepository; | ||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Service\ContentDimensionCombinator | ||
*/ | ||
protected $contentDimensionCombinator; | ||
/** | ||
* @Flow\Inject | ||
* @var \Neos\ContentRepository\Domain\Factory\NodeFactory | ||
*/ | ||
protected $nodeFactory; | ||
} | ||
|
||
----- | ||
<?php | ||
|
||
namespace Neos\Rector\Test; | ||
|
||
use Neos\Flow\Annotations as Flow; | ||
use Neos\ContentRepository\Domain\Service\Context; | ||
|
||
class SomeClass extends AnotherClass | ||
{ | ||
/** | ||
* @Flow\Inject | ||
* @var \Neos\Neos\KeepThis | ||
*/ | ||
private $keepThisBecauseItDoesNotNeedToGetRemoved; | ||
|
||
/** | ||
* @var \Neos\Neos\Domain\Service\NodeSearchServiceInterface | ||
*/ | ||
private $keepThisBecauseNoInject; | ||
} | ||
|