public function instance()
    {
        $settings = $this->getValidatedSettings();

        $objectManager = $this->createObjectManager($settings);
        $logger = isset($settings['logger']) ? isset($settings['logger']) : null;

        $this->initializeRegistry($objectManager, $logger);

        return new DataMapper($objectManager);
    }
public function instance()
    {
        $settings = $this->getValidatedSettings();

        $objectManager = $this->createObjectManager($settings);
        $logger = isset($settings['logger']) ? isset($settings['logger']) : null;

        $this->initializeRegistry($objectManager, $logger);

        return new DataMapper($objectManager);
    }
public function instance ( ) { $ settings = $ this -> getValidatedSettings ( ) ; $ objectManager = $ this -> createObjectManager ( $ settings ) ; $ logger = isset ( $ settings [ 'logger' ] ) ? isset ( $ settings [ 'logger' ] ) : null ; $ this -> initializeRegistry ( $ objectManager , $ logger ) ; return new DataMapper ( $ objectManager ) ; }
Instantiate a DataMapper from settings

@return self
Instantiate a DataMapper from settings