예제 #1
0
파일: Form.php 프로젝트: helmut/forms
 /**
  * Get autoload path for a class.
  *
  * @param  string|object  $class
  * @return string
  */
 public function pathForClass($class)
 {
     $path = Reflect::getDirectory($class);
     return rtrim($path, '/') . '/';
 }
예제 #2
0
파일: Plugin.php 프로젝트: helmut/forms
 /**
  * Set the plugin autoload path.
  *
  * @return void
  */
 public function setPath()
 {
     $this->path = Reflect::getDirectory($this);
 }