Update app.php

add missing hook connect
add missing hook connect