Updated the following:

1) Added in use statement
2) Changed findOneBy array() to findOneByUserNameOrEmail method
3) Changed $user to $wayne