mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
33 lines
773 B
PHP
33 lines
773 B
PHP
<?php
|
|
|
|
class JoomlaValetDriver extends BasicValetDriver
|
|
{
|
|
/**
|
|
* Determine if the driver serves the request.
|
|
*
|
|
* @param string $sitePath
|
|
* @param string $siteName
|
|
* @param string $uri
|
|
* @return bool
|
|
*/
|
|
public function serves($sitePath, $siteName, $uri)
|
|
{
|
|
return is_dir($sitePath.'/libraries/joomla');
|
|
}
|
|
|
|
/**
|
|
* Get the fully resolved path to the application's front controller.
|
|
*
|
|
* @param string $sitePath
|
|
* @param string $siteName
|
|
* @param string $uri
|
|
* @return string
|
|
*/
|
|
public function frontControllerPath($sitePath, $siteName, $uri)
|
|
{
|
|
$_SERVER['PHP_SELF'] = $uri;
|
|
|
|
return parent::frontControllerPath($sitePath, $siteName, $uri);
|
|
}
|
|
}
|