Custom page controller for login.php in 5.7.5

Permalink
It's monday morning and I'm suffering a sleep deprevation, so my apologies if this is a stupid question.

I'm building a package to handle authentication in a particular way for an internal project. I need to override the controller for Concrete\Single_Pages\login.php. I think I've done it right:

\packages\package_name\controllers\login.php:
namespace Concrete\Package\PackageName\Controller;
defined('C5_EXECUTE') or die('Access denied.');
use Loader;
use Concrete\Core\Error\Error;
use Concrete\Core\Page\Controller\PageTypeController;
class LoginPageTypeController  extends PageTypeController {
    public function view() {
        throw new \Exception('Controller loaded okay');
    }
}


No matter what I do, I can't get it to load my controller.

What seriously newbie mistake am I making?

 
gsg replied on at Permalink Reply
I think I'm going about this the wrong way. If mods could delete this topic would be grateful as I feel I've made a fool of myself.