\I heard that Laravel was made with symfony, php framework. So, I thought symfony bundle will work at Laravel, too.
I want to install it to Laravel "5.1.*". So I edited this line at composer.json.
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"igorw/file-serve-bundle": "~1.0"
},
then I executed composer update.
readme.md say I have to add it to my app's kernel.
public function registerBundles()
{
$bundles = array(
// ...
new Igorw\FileServeBundle\IgorwFileServeBundle(),
// ...
);
// ...
}
So I added it to my kernel.
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Igorw\FileServeBundle\IgorwFileServeBundle::class,
];
But When I save and go to my app at brower, FatalErrorException in Bundle.php line 29: Class 'Symfony\Component\DependencyInjection\ContainerAware' not found was appear.
What I'm wrong?