コード例 #1
0
ファイル: ModuleMap.php プロジェクト: bogdananton/vsc
 public function __construct($sPath, $sRegex)
 {
     $sPath = realpath(dirname($sPath));
     if (basename($sPath) == 'config') {
         $sPath = substr($sPath, 0, -7);
     }
     $sPath .= DIRECTORY_SEPARATOR;
     $this->setTemplatePath(VSC_RES_PATH . 'templates' . DIRECTORY_SEPARATOR);
     parent::__construct($sPath, $sRegex);
 }
コード例 #2
0
ファイル: addHeaderTest.php プロジェクト: bogdananton/vsc
 public function __construct($sPath = null, $sRegex = null)
 {
     if (is_null($sPath)) {
         $sPath = __FILE__;
     }
     if (is_null($sRegex)) {
         $sRegex = '.*';
     }
     parent::__construct($sPath, $sRegex);
 }
コード例 #3
0
ファイル: removeHeaderTest.php プロジェクト: bogdananton/vsc
 public function __construct($sPath = null, $sRegex = null)
 {
     if (is_null($sPath)) {
         $sPath = __FILE__;
     }
     if (is_null($sRegex)) {
         $sRegex = '.*';
     }
     parent::addHeader('Accept', 'application/json');
     parent::__construct($sPath, $sRegex);
 }