Skip to content
  • Alexander Schnitzler's avatar
    [TASK] Replace inject methods with @inject; allow @Flow\Inject · ad7219c2
    Alexander Schnitzler authored
    Currently we are using inject methods like:
    
    /*
     * @param $foo Foo
     */
    public function injectFoo(Foo $foo) {
    	$this->foo = $foo;
    }
    
    This patch removes these methods and introduces
    property annotations:
    
    /**
     * @var Foo
     * @inject
     */
    protected $foo;
    
    Besides that, it allows the use of @Flow\Inject
    as well for compatibility to Flow.
    
    Releases: 6.2
    Resolves: #46598
    Change-Id: Ied219d465dfa8fce24a819a7fc58a2ff8cb5401c
    Reviewed-on: https://review.typo3.org/21819
    Reviewed-by: Alexander Schnitzler
    Tested-by: Alexander Schnitzler
    Reviewed-by: Stefan Neufeind
    Tested-by: Stefan Neufeind
    ad7219c2