public function populateFromEnvironment()
 {
     if (HerokuDetector::detected()) {
         $this->logToStandardError();
         $this->applyParameterMap((new DatabaseConfiguration())->getParameterMap());
     }
 }
Example #2
0
 /**
  * Override check for Kernel Root Dir.
  * Otherwise, the app will misbehave on Heroku.
  *
  * @return mixed|string
  */
 public function getRootDir()
 {
     if (Utils\HerokuDetector::detected()) {
         return Utils\HerokuDetector::getSymfonyKernelRoot();
     } else {
         return parent::getRootDir();
     }
 }