twig = $twig; $this->request = $request; } public function register_hook() { $interim_login = $this->request->request( 'interim-login' ); if ( is_null( $interim_login ) ) { add_action( 'login_footer', array( $this, 'add_footer' ) ); } } public function add_footer() { echo $this->twig->get_view( 'login/login-footer.html.twig' ); } }