예제 #1
0
파일: Url.php 프로젝트: parabol/laravel-cms
 public function get()
 {
     Rapyd::getContainer('url')->to($this->current());
     if ($this->url == '') {
         return $this->current();
     } else {
         $url = $this->url;
         $this->url = '';
         return $url;
     }
 }
예제 #2
0
 /**
  * Get the Container from Rapyd
  *
  * @param string $service
  * @return \Zofe\Rapyd\Container 
  * @static 
  */
 public static function getContainer($service = null)
 {
     return \Zofe\Rapyd\Rapyd::getContainer($service);
 }