mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
18 lines
364 B
PHP
18 lines
364 B
PHP
<?php
|
|
|
|
class WordPressValetDriver 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.'/wp-admin');
|
|
}
|
|
}
|