src/Core/AService.php
protected function prepareInject() {
        $model = ($this->model) ? $this->model : $this->getModule() . '\Models\\' . $this->getClassName();

        if (is_object($model))
            $model = get_class($model);

        if (!class_exists($model))
            return array_merge(parent::prepareInject(), $this->getConfigInject('services'));

        return array_merge(parent::prepareInject(), $this->getConfigInject('services'), array(
            'model' => array(
                'class' => $model
            ),
        ));
    }
protected function prepareInject() {
        $model = ($this->model) ? $this->model : $this->getModule() . '\Models\\' . $this->getClassName();

        if (is_object($model))
            $model = get_class($model);

        if (!class_exists($model))
            return array_merge(parent::prepareInject(), $this->getConfigInject('services'));

        return array_merge(parent::prepareInject(), $this->getConfigInject('services'), array(
            'model' => array(
                'class' => $model
            ),
        ));
    }
protected function prepareInject ( ) { $ model = ( $ this -> model ) ? $ this -> model : $ this -> getModule ( ) . '\Models\\' . $ this -> getClassName ( ) ; if ( is_object ( $ model ) ) $ model = get_class ( $ model ) ; if ( ! class_exists ( $ model ) ) return array_merge ( parent :: prepareInject ( ) , $ this -> getConfigInject ( 'services' ) ) ; return array_merge ( parent :: prepareInject ( ) , $ this -> getConfigInject ( 'services' ) , array ( 'model' => array ( 'class' => $ model ) , ) ) ; }
prepares injection of classes
@return array
prepares injection of classes