/** * Get PsySh Configuration for the current environment * * @return Configuration */ public function getPsyShConfiguration() { $config = new Configuration(); $config->setHistoryFile($this->path . '/tinkr.history'); $config->setHistorySize(0); $includes = [$_ENV['HOME'] . '/.composer/vendor/autoload.php']; if (file_exists($this->path . '/vendor/autoload.php')) { $includes[] = realpath($this->path . '/vendor/autoload.php'); } $config->setDefaultIncludes($includes); $config->setDataDir(realpath($this->path)); return $config; }