numediaweb
numediaweb

Reputation: 17010

Symfony 3: How to create a private bundle

I have a private API and I am using GuzzleHttp bundle to make calls to it. Now I'm just creating a sub-folder in the src/MyCompany/ApiBundle/.. and I register it in the AppKernel.php and use it without errors.

Now I need to make this a separate bundle (in its own private repository) so I can use it inside different projects.. I followed many tutorials but always face problems as they are for Symfony 2.

Symfony has a tutorial (Generating a New Bundle Skeleton) on the docs but it doesn't talk about external bundles like in my case.

So how to create such bundle? be able to test it and make it in its own repository to be later integrated inside other projects using composer?

Upvotes: 2

Views: 968

Answers (1)

po_taka
po_taka

Reputation: 1856

Your bundle should be separate project. Check some fos bundles

Also check Best Practices for Reusable Bundles

You may also like to check

Upvotes: 1

Related Questions