Created
September 7, 2016 02:32
-
-
Save kvnm/b4c2e237a62988902490042aadbce8b8 to your computer and use it in GitHub Desktop.
Valet driver for Drupal that allows a custom web directory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class UntoldDrupalValetDriver extends DrupalValetDriver { | |
private function documentRoot($sitePath) { | |
return $sitePath . '/drupal'; | |
} | |
public function serves($sitePath, $siteName, $uri) { | |
return parent::serves($this->documentRoot($sitePath), $siteName, $uri); | |
} | |
public function isStaticFile($sitePath, $siteName, $uri) { | |
return parent::isStaticFile($this->documentRoot($sitePath), $siteName, $uri); | |
} | |
public function frontControllerPath($sitePath, $siteName, $uri) { | |
return parent::frontControllerPath($this->documentRoot($sitePath), $siteName, $uri); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment