title: How do I get the logged in user's id in symfony 4?
body: <p>The user can log in, but i need his id to show his profile. Since i'm working in symfony 4, the many possible answers i've found were obsolete.</p>