Skip to content

Instantly share code, notes, and snippets.

@kevinruscoe
Last active May 9, 2016 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinruscoe/e7c5fe53e203084cdac5ce5e94da9ea5 to your computer and use it in GitHub Desktop.
Save kevinruscoe/e7c5fe53e203084cdac5ce5e94da9ea5 to your computer and use it in GitHub Desktop.
<?php
class NestedWordPressValetDriver extends WordPressValetDriver
{
/**
* 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.'/wordpress/wp-admin');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment