module/Core/src/Grid/Core/Model/Package/EnabledListServiceFactory.php
public function createService( ServiceLocatorInterface $serviceLocator )
    {
        // Configure the definitions
        $config     = $serviceLocator->get( 'Configuration' );
        $coreConfig = isset( $config['modules']['Grid\Core'] )
                    ? (array) $config['modules']['Grid\Core']
                    : array();

        return new EnabledList(
            isset( $coreConfig['enabledPackages'] )
                ? (array) $coreConfig['enabledPackages']
                : array(),
            isset( $coreConfig['modifyPackages'] )
                ? (bool) $coreConfig['modifyPackages']
                : true
        );
    }
public function createService( ServiceLocatorInterface $serviceLocator )
    {
        // Configure the definitions
        $config     = $serviceLocator->get( 'Configuration' );
        $coreConfig = isset( $config['modules']['Grid\Core'] )
                    ? (array) $config['modules']['Grid\Core']
                    : array();

        return new EnabledList(
            isset( $coreConfig['enabledPackages'] )
                ? (array) $coreConfig['enabledPackages']
                : array(),
            isset( $coreConfig['modifyPackages'] )
                ? (bool) $coreConfig['modifyPackages']
                : true
        );
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { // Configure the definitions $ config = $ serviceLocator -> get ( 'Configuration' ) ; $ coreConfig = isset ( $ config [ 'modules' ] [ 'Grid\Core' ] ) ? ( array ) $ config [ 'modules' ] [ 'Grid\Core' ] : array ( ) ; return new EnabledList ( isset ( $ coreConfig [ 'enabledPackages' ] ) ? ( array ) $ coreConfig [ 'enabledPackages' ] : array ( ) , isset ( $ coreConfig [ 'modifyPackages' ] ) ? ( bool ) $ coreConfig [ 'modifyPackages' ] : true ) ; }
Create the enabled-list-service

@param   \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
@return  \Grid\Core\Model\Package\EnabledList
Create the enabled - list - service