Chapter 6. Sharing Your Extensions
Since everything is a bundle in Symfony, all the code you write is already in the structure it needs to be in order to be shared with others. If we take all the code that we wrote over the course of this book inside the BookBundle
folder, and make it available to others, all they would have to do to make it work is copy our configurations. This is nice, but it is still a "lot of work" to do, which includes defining each of the services with the right parameters and so on.
In this chapter, we will look at the steps required to make an easy-to-use bundle for others as well as other best practices for sharing code. In Chapter 4, Security, we added a way for users to sign in using their GitHub account. This is a good example of something that others might want to reuse or that we ourselves might want to reuse from one project to another.