dopiaza/slack-exception-logger-bundle
The package now requires Symfony 3.0+ compatibility, meaning it aligns with modern Laravel (v5.5+) and Symfony ecosystems. To get started:
composer update to ensure your project meets Symfony 3.0+ requirements (e.g., symfony/http-foundation, symfony/console).composer require vendor/package) and follow the package’s updated docs for initialization (e.g., service provider registration, config publishing).Key change: No breaking API changes yet, but Symfony 3.0+ enforces stricter type hints and PSR-4 autoloading. Test with php artisan config:clear if issues arise.
ContainerInterface (now fully compatible) for tighter integration with Laravel’s service container. Example:
use Symfony\Component\HttpFoundation\Request;
$request = app(Request::class); // Works as expected in Laravel 5.5+
KernelEvents), ensure your Laravel event listeners extend Symfony\Component\EventDispatcher\EventSubscriberInterface.config('package.key') as before, but validate against Symfony’s YamlFileLoader if the package ships config files.Symfony\Component\HttpKernel\HttpKernelInterface for Laravel’s middleware stack.Symfony\Component\Console\Command as the base class. Example:
use Symfony\Component\Console\Command\Command;
class MyCommand extends Command { ... }
Symfony\Component\HttpClient\HttpClient (if available) over Guzzle for consistency.composer.json autoload if the package uses non-PSR-4 namespaces:
"autoload": {
"psr-4": { "Vendor\\Package\\": "src/" }
}
HttpFoundation methods) may be removed. Check the package’s composer.json for required versions.composer dump-autoload if Symfony classes fail to load.composer.json:
"config": { "platform-check": true, "preferred-install": "dist" }
AppServiceProvider::boot().config/services.php:
'symfony.http_client' => [
'timeout' => 30,
],
MonologHandler for unified logging:
use Symfony\Component\HttpKernel\Log\MonologHandler;
$handler = new MonologHandler(new Monolog\Logger('name'));
@symfony/webpack-encore for Symfony-compatible Webpack.Mockery:
$mockRequest = Mockery::mock(Symfony\Component\HttpFoundation\Request::class);
How can I help you explore Laravel packages today?