protected function autoLoad()
    {
        foreach (Components::available() as $oComponent) {
            if (!empty($oComponent->data->{'nails/module-admin'}->autoload)) {

                $oAutoLoad = $oComponent->data->{'nails/module-admin'}->autoload;

                //  Libraries
                if (!empty($oAutoLoad->services)) {
                    foreach ($oAutoLoad->services as $sService) {
                        Factory::service($sService, $oComponent->slug);
                    }
                }

                //  Models
                if (!empty($oAutoLoad->models)) {
                    foreach ($oAutoLoad->models as $sModel) {
                        Factory::model($sModel, $oComponent->slug);
                    }
                }

                //  Helpers
                if (!empty($oAutoLoad->helpers)) {
                    foreach ($oAutoLoad->helpers as $sHelper) {
                        Factory::helper($sHelper, $oComponent->slug);
                    }
                }
            }
        }
    }
protected function autoLoad()
    {
        foreach (Components::available() as $oComponent) {
            if (!empty($oComponent->data->{'nails/module-admin'}->autoload)) {

                $oAutoLoad = $oComponent->data->{'nails/module-admin'}->autoload;

                //  Libraries
                if (!empty($oAutoLoad->services)) {
                    foreach ($oAutoLoad->services as $sService) {
                        Factory::service($sService, $oComponent->slug);
                    }
                }

                //  Models
                if (!empty($oAutoLoad->models)) {
                    foreach ($oAutoLoad->models as $sModel) {
                        Factory::model($sModel, $oComponent->slug);
                    }
                }

                //  Helpers
                if (!empty($oAutoLoad->helpers)) {
                    foreach ($oAutoLoad->helpers as $sHelper) {
                        Factory::helper($sHelper, $oComponent->slug);
                    }
                }
            }
        }
    }
protected function autoLoad ( ) { foreach ( Components :: available ( ) as $ oComponent ) { if ( ! empty ( $ oComponent -> data -> { 'nails/module-admin' } -> autoload ) ) { $ oAutoLoad = $ oComponent -> data -> { 'nails/module-admin' } -> autoload ; //  Libraries if ( ! empty ( $ oAutoLoad -> services ) ) { foreach ( $ oAutoLoad -> services as $ sService ) { Factory :: service ( $ sService , $ oComponent -> slug ) ; } } //  Models if ( ! empty ( $ oAutoLoad -> models ) ) { foreach ( $ oAutoLoad -> models as $ sModel ) { Factory :: model ( $ sModel , $ oComponent -> slug ) ; } } //  Helpers if ( ! empty ( $ oAutoLoad -> helpers ) ) { foreach ( $ oAutoLoad -> helpers as $ sHelper ) { Factory :: helper ( $ sHelper , $ oComponent -> slug ) ; } } } } }
Autoload component items

@throws \Nails\Common\Exception\FactoryException
Autoload component items