コード例 #1
0
 protected function onLoad()
 {
     EnvironmentVariables::define("resourceAddress", G_WORKER_PATH . "/" . Configuration::RESOURCE_PATH);
     EnvironmentVariables::define("documentRoot", G_DOCUMENT_ROOT);
     EnvironmentVariables::define("frameworkRoot", G_FRAMEWORK_ROOT);
     EnvironmentVariables::define("workerAddress", G_WORKER_URL);
     UniversalMessageFilter::registerFilter(new \genonbeta\view\filter\ProviderFilter());
     SourceProvider::registerProvider(new \genonbeta\view\provider\EnvironmentVariablesProvider());
     SourceProvider::registerProvider(new \genonbeta\view\provider\ViewProvider());
 }
コード例 #2
0
ファイル: Pattern.php プロジェクト: genonbeta/GFramework
 function __construct($pattern)
 {
     $this->pattern = UniversalMessageFilter::applyFilter($pattern, PatternFilter::TYPE_CODE);
 }