Exemple #1
0
 /**
  * Define connections using environment variables
  *
  * @return void
  */
 public function __construct()
 {
     $this->default = DbDsn::parse(env('DATABASE_URL'));
     $this->test = DbDsn::parse(env('DATABASE_TEST_URL'));
     // Use datasource class in MongoDB plugin
     $this->default['datasource'] = 'Mongodb.MongodbSource';
 }
Exemple #2
0
 /**
  * Define connections using environment variables
  *
  * @return void
  */
 public function __construct()
 {
     $settings = DbDsn::parse(env('DATABASE_URL'));
     $this->default = $this->_adoptSettings($settings);
     $settings = DbDsn::parse(env('DATABASE_TICKETS_URL'));
     $this->tickets = $this->_adoptSettings($settings);
 }
 /**
  * Define connections using environment variables
  *
  * @return void
  */
 public function __construct()
 {
     $this->default = DbDsn::parse(env('DATABASE_URL'));
     $this->test = DbDsn::parse(env('DATABASE_TEST_URL'));
 }