Feature #9626

Switch off autowiring for single methods via @autowiring annotation

Added by Robert Lemke over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Object
Start date:
2010-09-07
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

It would be nice to be able to switch off autowiring for certain (inject) methods and the constructor by adding an "@autowiring off" annotation to the respective method:

/**
 * @param Foo $foo
 * @autowiring off
 */
public function injectFoo(Foo $foo) {
   ...
}

It should also be possible to switch off autowiring completely for the whole class by means of an @autowiring off annotation (currently that's only possible through some configuration in the Objects.yaml).


Related issues

Related to TYPO3.Flow - Bug #9679: PdoHelper fails if username / password are NULLResolvedRobert Lemke2010-09-10

Actions
#1

Updated by Robert Lemke over 10 years ago

  • Subject changed from Switch off autowring for single methods via @autowiring annotation to Switch off autowiring for single methods via @autowiring annotation
#2

Updated by Robert Lemke over 10 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF