src/Phossa2/Di/Resolver/Resolver.php
public function hasService(/*# string */ $id = '')/*# : bool */
    {
        $sid = $this->getSectionId($id);

        // direct match
        if ($this->has($sid)) {
            return true;
        }

        // autoclass
        if ($this->autoClassName($id)) {
            return true;
        }

        // translation
        if ($this->serviceTranslation($id)) {
            return true;
        }

        return false;
    }
public function hasService(/*# string */ $id = '')/*# : bool */
    {
        $sid = $this->getSectionId($id);

        // direct match
        if ($this->has($sid)) {
            return true;
        }

        // autoclass
        if ($this->autoClassName($id)) {
            return true;
        }

        // translation
        if ($this->serviceTranslation($id)) {
            return true;
        }

        return false;
    }
public function hasService ( /*# string */ $ id = '' ) /*# : bool */ { $ sid = $ this -> getSectionId ( $ id ) ; // direct match if ( $ this -> has ( $ sid ) ) { return true ; } // autoclass if ( $ this -> autoClassName ( $ id ) ) { return true ; } // translation if ( $ this -> serviceTranslation ( $ id ) ) { return true ; } return false ; }
Autowiring support added

{@inheritDoc}
@since  2.1.0 added service translation
Autowiring support added