Check Deprecation Notice
Since this bundle is deprecated, verify if any of its features are critical to your project. If so, evaluate the suggested replacements (e.g., ecommit/deploy-rsync-bundle for deployment tasks).
Installation (if absolutely necessary)
composer require ecommit/util-bundle
Register the bundle in config/bundles.php:
return [
// ...
Ecommit\UtilBundle\EcommitUtilBundle::class => ['all' => true],
];
First Use Case
If using the Util class (now replaced by ecommit/scalar-values), check for legacy code dependencies:
use Ecommit\UtilBundle\Util; // Avoid; migrate to scalar-values
Command-Based Tasks
DeployCommand, migrate to ecommit/deploy-rsync-bundle:
php bin/console ecommit:deploy-rsync
GenerateEntitiesCommand with:
php bin/console make:entity
php bin/console ecommit:generate-entities
Doctrine Integration
ClearEntityManager, use ecommit/doctrine-orm-refetch:
use Ecommit\DoctrineOrmRefetch\ClearEntityManager;
$clearer = new ClearEntityManager();
$clearer->clear();
Twig Extensions
ecommit_util_table was used, replace with custom Twig filters or Symfony’s built-in table rendering.Cache Management
Cache class to Symfony’s Cache component:
use Symfony\Contracts\Cache\CacheInterface;
$cache = $container->get('cache.app');
Deprecation Risks
grep -r "Ecommit\\UtilBundle" .
Command Conflicts
InstallCommand/UpdateCommand were used, replace with custom scripts or Symfony’s MakeCommand.APCu Cache
ClearApcuCommand has no replacement; use apcu_clear_cache() or Symfony’s cache system.Locale Comparison
CompareLocalesCommand lacks a direct replacement; implement a custom solution with Symfony’s translation tools.composer why-not ecommit/util-bundle to identify blocking dependencies.// config/packages/dev/debug.php
return [
'debug' => true,
'deprecation_warnings' => true,
];
Util class with ecommit/scalar-values.How can I help you explore Laravel packages today?