1
0
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:
Taylor Otwell
2016-05-06 14:39:26 -05:00
parent 1f7280ac88
commit b81767afa1
3 changed files with 19 additions and 0 deletions

View 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');
}
}