Skip to content

Instantly share code, notes, and snippets.

@ahmed-bhs
Created October 6, 2018 19:15
Show Gist options
  • Save ahmed-bhs/b91a31e764e2d4c10c1b9704a28e2fd7 to your computer and use it in GitHub Desktop.
Save ahmed-bhs/b91a31e764e2d4c10c1b9704a28e2fd7 to your computer and use it in GitHub Desktop.
<?php
// portal/src/Symfony
# could have been portal/src/Portal/Common/Infrastructure/Symfony but I got lazy
namespace Portal\Common\Infrastructure\Symfony;
use Portal\Common\Infrastructure\Symfony\DependencyInjection\AppContextExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle;
# I suppose SymfonyBundle might be a better name
class PortalBundle extends Bundle
{
public function getContainerExtension()
{
return new AppContextExtension();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment