PHP code example of carlosv2 / allegro
1. Go to this page and download the library: Download carlosv2/allegro 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/ */
carlosv2 / allegro example snippets
use carlosV2\Allegro\Allegro;
use Symfony\Component\HttpKernel\Kernel;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// Any bundle that you want to have manually added
];
Allegro::appendTo($bundles);
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
// Any bundle that you want to have manually added for tests
Allegro::appendDevsTo($bundles);
}
return $bundles;
}
...
}