Open arogachev opened 9 years ago
Here is suggestion from @cyhalothrin:
class Importer { public function __construct(ImporterInterface $importer) { } }
\Yii::createObject(Importer);
It's better to have ImporterInterface in SL (and information what it implements). Solves passing parameters in constructor and autocomplete problems.
ImporterInterface
Here is suggestion from @cyhalothrin:
It's better to have
ImporterInterface
in SL (and information what it implements). Solves passing parameters in constructor and autocomplete problems.