⇦ Back to Installer classMethod setupInstall
public bool|\Joomla\CMS\Installer\InstallerAdapter
setupInstall
(mixed $route = 'install', mixed $returnAdapter = false)
Prepare for installation: this method sets the installation directory, finds
and checks the installation file and verifies the installation type.
Parameters
- string $route The install route being followed
- bool $returnAdapter Flag to return the instantiated adapter
Returns
- bool|\Joomla\CMS\Installer\InstallerAdapter InstallerAdapter object if explicitly requested otherwise boolean
Since
Method setupInstall - Source code
public function setupInstall($route = 'install', $returnAdapter = false)
{
if (!$this->findManifest()) {
return false;
}
$type = (string) $this->manifest->attributes()->type;
$params = array('route' => $route, 'manifest' => $this->getManifest());
$adapter = $this->loadAdapter($type, $params);
if ($returnAdapter) {
return $adapter;
}
return true;
}