PHP code example of phpnomad / symfony-event-dispatcher-integration
1. Go to this page and download the library: Download phpnomad/symfony-event-dispatcher-integration library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phpnomad / symfony-event-dispatcher-integration example snippets
use MyApp\MyAppInitializer;
use PHPNomad\Di\Container\Container;
use PHPNomad\Loader\Bootstrapper;
use PHPNomad\Symfony\Component\EventDispatcherIntegration\Initializer as SymfonyEventDispatcherInitializer;
$container = new Container();
$bootstrapper = new Bootstrapper(
$container,
new MyAppInitializer(),
new SymfonyEventDispatcherInitializer(),
);
$bootstrapper->load();