public function execute() { $root = Config::getPhpbrewRoot(); $php = Config::getCurrentPhpName(); $file = "{$root}/php/{$php}/etc/php.ini"; Utils::editor($file); }
public function execute() { $file = php_ini_loaded_file(); if (!file_exists($file)) { $php = Config::getCurrentPhpName(); $this->logger->warn("Sorry, I can't find the {$file} file for php {$php}."); return; } Utils::editor($file); }
public function execute($extensionName) { $ext = ExtensionFactory::lookup($extensionName); if (!$ext) { return $this->error("Extension {$extensionName} not found."); } $file = $ext->getConfigFilePath(); $this->logger->info("Looking for {$file} file..."); if (!file_exists($file)) { $file .= '.disabled'; // try with ini.disabled file $this->logger->info("Looking for {$file} file..."); if (!file_exists($file)) { $this->logger->warn("Sorry, I can't find the ini file for the requested extension: \"{$extensionName}\"."); return; } } Utils::editor($file); }