title: Class 'CodeIgniter\Filters\Logincheck ' not found in Codeignitor 4
body: <p>Class 'CodeIgniter\Filters\Logincheck' not found</p>
  <p>getting this error when try to create an filter to check the users authentication in CI 4.
  &quot;Filter Controller&quot;:</p>
  <pre><code>&lt;?php namespace App\Filters;
  
  use CodeIgniter\HTTP\RequestInterface;
  use CodeIgniter\HTTP\ResponseInterface;
  use CodeIgniter\Filters\FilterInterface;
  
  class Logincheck implements FilterInterface
  { 
      public function before(RequestInterface $request)
      {
          // Do something here
              helper('auth');
              if(!logged_in()){
                  $redirectURL =  '/';
                  return redirect()-&gt;to($redirectURL);                                    
              }
      }
      //--------------------------------------------------------------------
  
      public function after(RequestInterface $request, ResponseInterface $response)
      {
          // Do something here
      }
  }
  </code></pre>
  <p>Steps followed:</p>
  <p>Created Filter Class  <code>Logincheck.php</code>  in app/Filters
  modified the app/config/Filters.php as</p>
  <pre><code>class Filters extends BaseConfig
  {
      // Makes reading things below nicer,
      // and simpler to change out script that's used.
      public $aliases = [
          'Logincheck' =&gt; \CodeIgniter\Filters\Logincheck::class,
          'csrf'     =&gt; \CodeIgniter\Filters\CSRF::class,
          'toolbar'  =&gt; \CodeIgniter\Filters\DebugToolbar::class,
          'honeypot' =&gt; \CodeIgniter\Filters\Honeypot::class,
      ]; 
  
      // Always applied before every request
      public $globals = [
          'before' =&gt; [
              'Logincheck'
              //'honeypot'
              // 'csrf',
          ],
          'after'  =&gt; [
              'toolbar',
              //'honeypot'
          ],
      ];
  </code></pre>
  <p>after doing this when I am firing the controller getting the error as :</p>
  <pre><code>SYSTEMPATH/Filters/Filters.php at line 164
  
  157             else
  158             {
  159                 $classNames = [$this-&gt;config-&gt;aliases[$alias]];
  160             }
  161 
  162             foreach ($classNames as $className)
  163             {
  164                 $class = new $className();
  165 
  166                 if (! $class instanceof FilterInterface)
  167                 {
  168                     throw FilterException::forIncorrectInterface(get_class($class));
  169                 }
  170 
  171                 if ($position === 'before')
  </code></pre>