Skip to content

Instantly share code, notes, and snippets.

@that0n3guy
Created September 29, 2016 18:15
Show Gist options
  • Save that0n3guy/c1d92033fcd0f4ab16750e11347d90fc to your computer and use it in GitHub Desktop.
Save that0n3guy/c1d92033fcd0f4ab16750e11347d90fc to your computer and use it in GitHub Desktop.
x2crm from 5.0.4
<?php
// this file is in:
// custom/protected/config/console.php
// This file is to contain custom modifications to the $config array returned by
// protected/config/main.php via protected/config/console.php to construct the
// console application.
//Just use the web file... no need to have a different config for console at this point.
require('web.php');
unset($config['controllerMap']); // Fix weird error when running console commands. Some where proConfig.php is getting included.
// because of: http://x2community.com/topic/2181-x2flow-remote-api-action-cant-be-run-from-crontab/
$config['components']['request']['hostInfo'] = 'https://crm.oursite.com';
$config['components']['request']['baseUrl'] = '';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment