alexislefebvre/symfony-workflow-style
composer require vendor/package-name
dump_style key (previously style in v0.1).
php artisan vendor:publish --provider="Vendor\Package\ServiceProvider"
use Vendor\Package\Facades\Package;
Package::dump($data, [
'dump_style' => 'compact' // Updated key name (was 'style')
]);
dump_style) in config/package.php for consistency.Package::log($data, ['dump_style' => 'verbose']);
$this->app->bind('package.style.compact', function () {
return new CustomCompactStyle();
});
public function handle($request, Closure $next) {
config(['package.default_style' => 'compact']);
return $next($request);
}
style → dump_style (PR #10). Update all config files and hardcoded usages.
Fix: Run php artisan config:clear after updating config.symfony/framework-bundle, ensure proper version constraints in composer.json to avoid conflicts (PR #9).dd(config('package')) to verify loaded styles.symfony/framework-bundle by pinning versions or using replace in composer.json:
"replace": {
"symfony/framework-bundle": "6.0.*"
}
class MyStyle implements StyleInterface {
public function render($data) { ... }
}
Register in config/package.php:
'styles' => [
'my_style' => Vendor\Package\Styles\MyStyle::class,
],
setLogger() method).$this->mergeConfigFrom([
'package.dump_style' => env('PACKAGE_STYLE', 'compact'),
]);
$this->partialMock(Package::class, ['dump']);
How can I help you explore Laravel packages today?