mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
wordpress for later purposes
This commit is contained in:
17
drivers/WordPressValetDriver.php
Normal file
17
drivers/WordPressValetDriver.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class WordPressValetDriver extends BasicValetDriver
|
||||
{
|
||||
/**
|
||||
* Determine if the driver serves the request.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function serves($sitePath, $siteName, $uri)
|
||||
{
|
||||
return is_dir($sitePath.'/wp-admin');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user