Implementation
We start by creating a new module called Foggyline\SalesBundle
. We do so with the help of the console, by running the command as follows:
php bin/console generate:bundle --namespace=Foggyline/SalesBundle
The command triggers an interactive process, asking us several questions along the way, as shown here:
![Implementation](/api/v2/epubs/9781787129009/files/graphics/B05460_11_01.jpg)
Once done, the app/AppKernel.php
and app/config/routing.yml
files get modified automatically. The registerBundles
method of an AppKernel
class has been added to the following line under the $bundles
array:
new Foggyline\PaymentBundle\FoggylineSalesBundle(),
The routing.yml
file has been updated with the following entry:
foggyline_payment: ...
Get PHP 7: Real World Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.