mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -20,6 +20,6 @@ class ChillBudgetBundle extends Bundle
|
||||
{
|
||||
parent::build($container);
|
||||
|
||||
$container->addCompilerPass(new CalculatorCompilerPass());
|
||||
$container->addCompilerPass(new CalculatorCompilerPass(), \Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_BEFORE_OPTIMIZATION, 0);
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ abstract class AbstractElementController extends AbstractController
|
||||
if ($request->getMethod() === Request::METHOD_DELETE) {
|
||||
$form->handleRequest($request);
|
||||
|
||||
if ($form->isValid()) {
|
||||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
$this->chillMainLogger->notice('A budget element has been removed', [
|
||||
'family_element' => $element::class,
|
||||
'by_user' => $this->getUser()->getUsername(),
|
||||
|
Reference in New Issue
Block a user