public function get($name, $options = [], $usePeeringServiceManagers = true)
    {
        /* @var $instance \LispBase\ZfcDatagrid\Datagrid */
        $instance = new $name();
        $instance->createService($this->getServiceLocator());

        return $instance;
    }
public function get($name, $options = [], $usePeeringServiceManagers = true)
    {
        /* @var $instance \LispBase\ZfcDatagrid\Datagrid */
        $instance = new $name();
        $instance->createService($this->getServiceLocator());

        return $instance;
    }
public function get ( $ name , $ options = [ ] , $ usePeeringServiceManagers = true ) { /* @var $instance \LispBase\ZfcDatagrid\Datagrid */ $ instance = new $ name ( ) ; $ instance -> createService ( $ this -> getServiceLocator ( ) ) ; return $ instance ; }
Retrieve a service from the manager by name.

Allows passing an array of options to use when creating the instance.
createFromInvokable() will use these and pass them to the instance
constructor if not null and a non-empty array.

@param string       $name
@param string|array $options
@param bool         $usePeeringServiceManagers

@return object
Retrieve a service from the manager by name .