protected function configApi(ConfigXML $config)
    {
        $this->config(static::TOOL_CANVAS_API, $config->toArray('/config/canvas')[0]);
        if (empty($this->config(static::TOOL_CANVAS_API))) {
            throw new ConfigurationException(
                'Canvas API credentials must be provided',
                ConfigurationException::CANVAS_API_MISSING
            );
        }
        $this->log('Canvas API credentials configured');
    }
protected function configApi(ConfigXML $config)
    {
        $this->config(static::TOOL_CANVAS_API, $config->toArray('/config/canvas')[0]);
        if (empty($this->config(static::TOOL_CANVAS_API))) {
            throw new ConfigurationException(
                'Canvas API credentials must be provided',
                ConfigurationException::CANVAS_API_MISSING
            );
        }
        $this->log('Canvas API credentials configured');
    }
protected function configApi ( ConfigXML $ config ) { $ this -> config ( static :: TOOL_CANVAS_API , $ config -> toArray ( '/config/canvas' ) [ 0 ] ) ; if ( empty ( $ this -> config ( static :: TOOL_CANVAS_API ) ) ) { throw new ConfigurationException ( 'Canvas API credentials must be provided' , ConfigurationException :: CANVAS_API_MISSING ) ; } $ this -> log ( 'Canvas API credentials configured' ) ; }
Configure API access object from configuration file
@param ConfigXML $config Configuration file object
@return void
Configure API access object from configuration file