title: How to extends a facade in laravel?
body: <p>I'm try extends a facede in laravel 4, but I only get a next error on try calling a method.</p>
  
  <pre><code>Non-static method App\Libraries\Theme::setActive() should not be called statically
  </code></pre>
  
  <h2>Edit</h2>
  
  <p>After responce of @Antonio, to change the method to static, let the power of using the keyword $ this-> inside the method.</p>
  
  <p>Symfony \ Component \ Debug \ Exception \ FatalErrorException Using
  $this when not in object context in <code>$active = $this-&gt;ensureRegistered($active);</code></p>
  
  <p>My code:</p>
  
  <pre><code>&lt;?php namespace App\Libraries;
  
  use Cartalyst\Themes\Facades\Theme as ThemeBag;
  
  class Theme extends ThemeBag {
  
      /**
       * Sets the active theme.
       *
       * @param  mixed  $active
       * @return Cartalyst\Themes\ThemeInterface
       */
  public static function setActive($active)
  {
      $active = $this-&gt;ensureRegistered($active);
  
      if ( ! isset($this-&gt;themes[$active-&gt;getSlug()]))
      {
          $this-&gt;register($active);
      }
  
      $this-&gt;active = $active;
  
      include $this-&gt;getActive()-&gt;getPath() . '\\helpers\\composers.php';
  }
  }
  </code></pre>