示例#1
0
<?php

use Tale\ClassLoader;
use Tale\Cli\Option;
use Tale\Cli\Request;
include '../src/Tale/ClassLoader.php';
$loader = new ClassLoader('../src');
$loader->register();
var_dump(\Tale\Environment::getClientOptions());
var_dump(\Tale\Net\Url::fromEnvironment(), (string) \Tale\Net\Url::fromEnvironment());
示例#2
0
 public static function getQueryStringFromEnvironment()
 {
     self::_validateWebEnvironment();
     return Environment::getClientOption('redirectQueryString', Environment::getClientOption('queryString'));
 }
示例#3
0
 public static function getMethodFromEnvironment()
 {
     self::_validateWebEnvironment();
     return Environment::getClientOption('REQUEST_METHOD');
 }