protected function checkTraitsInjections()
    {
        $traits = $this->getUsedTraits();
        $reflection = new \ReflectionClass($this);
        foreach($traits as $trait) {
            $methodName = 'setTraitInjections' . $trait;
            if($reflection->hasMethod($methodName)) {
                $this->$methodName();
                $this->checkTraitInjections($trait);
            }
        }
    }
protected function checkTraitsInjections()
    {
        $traits = $this->getUsedTraits();
        $reflection = new \ReflectionClass($this);
        foreach($traits as $trait) {
            $methodName = 'setTraitInjections' . $trait;
            if($reflection->hasMethod($methodName)) {
                $this->$methodName();
                $this->checkTraitInjections($trait);
            }
        }
    }
protected function checkTraitsInjections ( ) { $ traits = $ this -> getUsedTraits ( ) ; $ reflection = new \ ReflectionClass ( $ this ) ; foreach ( $ traits as $ trait ) { $ methodName = 'setTraitInjections' . $ trait ; if ( $ reflection -> hasMethod ( $ methodName ) ) { $ this -> $ methodName ( ) ; $ this -> checkTraitInjections ( $ trait ) ; } } }
Checks that injections needed by traits have been performed
Checks that injections needed by traits have been performed