Throughout this chapter we built a miniature but functional customer module. The module assumed a certain level of setup done on our security.yml
file, which can be covered as part of module documentation if we were to redistribute it. These changes included defining our own custom firewall, with a custom security provider. The security provider pointed to our customer
class, which in turn was built in a way that complies to the Symfony UserInterface
. We then built a register, login, and forgot your password form. Though each comes with a minimal set of functionalities, we saw how simple it is to build a fully custom register and login system.
Furthermore, we applied some forward thinking, by using the specially defined service to set up the My Orders section under the My Account page. This is by far the ideal way of doing it, and it serves a purpose, as we will later override this service cleanly from the sales
module.
Moving forward, in the next chapter, we will build a payment
module...