Inheritance: extends ValetDriver
コード例 #1
0
 /**
  * Get the fully resolved path to the application's front controller.
  *
  * @param  string  $sitePath
  * @param  string  $siteName
  * @param  string  $uri
  * @return string
  */
 public function frontControllerPath($sitePath, $siteName, $uri)
 {
     $_SERVER['PHP_SELF'] = $uri;
     $_SERVER['SERVER_ADDR'] = '127.0.0.1';
     $_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
     return parent::frontControllerPath($sitePath, $siteName, $this->forceTrailingSlash($uri));
 }
コード例 #2
0
 /**
  * Get the fully resolved path to the application's front controller.
  *
  * @param string $sitePath
  * @param string $siteName
  * @param string $uri
  *
  * @return string
  */
 public function frontControllerPath($sitePath, $siteName, $uri)
 {
     if (strpos($uri, '/cms/') !== false) {
         $_SERVER['PHP_SELF'] = $uri;
         return parent::frontControllerPath($sitePath, $siteName, $uri);
     }
     return $sitePath . '/htdocs/index.php';
 }
コード例 #3
0
 /**
  * Get the fully resolved path to the application's front controller.
  *
  * @param  string  $sitePath
  * @param  string  $siteName
  * @param  string  $uri
  * @return string
  */
 public function frontControllerPath($sitePath, $siteName, $uri)
 {
     $_SERVER['PHP_SELF'] = $uri;
     $_SERVER['SERVER_ADDR'] = '127.0.0.1';
     return parent::frontControllerPath($sitePath, $siteName, $uri);
 }
コード例 #4
0
 /**
  * Get the fully resolved path to the application's front controller.
  *
  * @param  string  $sitePath
  * @param  string  $siteName
  * @param  string  $uri
  * @return string
  */
 public function frontControllerPath($sitePath, $siteName, $uri)
 {
     $_SERVER['PHP_SELF'] = $uri;
     return parent::frontControllerPath($sitePath, $siteName, $uri);
 }