Baldinof / roadrunner-bundle

A RoadRunner worker integrated in your Symfony app
MIT License
270 stars 48 forks source link

Symfony 4.4.x ArrayNode and BaseNode E_USER_DEPRECATED notice #22

Closed treadmillian closed 3 years ago

treadmillian commented 3 years ago

Can the following deprecation notice be resolved?

baldinof/roadrunner-bundle

[▼
  "exception" => Symfony\Component\ErrorHandler\Exception\SilencedErrorContext {#455 ▼
    +count: 2
    -severity: E_USER_DEPRECATED
    trace: {▼
      /data/smart/vendor/symfony/config/Definition/ArrayNode.php:238 {▼
        Symfony\Component\Config\Definition\ArrayNode->finalizeValue($value) …
        › if ($child->isDeprecated()) {
        ›     @trigger_error($child->getDeprecationMessage($name, $this->getPath()), \E_USER_DEPRECATED);
        › }
      }
      /data/smart/vendor/symfony/config/Definition/BaseNode.php:427 {▼
        › 
        › $value = $this->finalizeValue($value);
        › 
      }
    }
  }
]
Baldinof commented 3 years ago

Hi!

The should_reboot_kernel configuration is deprecated. I should find the time to update the Flex recipe 😅

If your config looks like this

baldinof_road_runner:
    should_reboot_kernel: false

You should update it to:

baldinof_road_runner:
    kernel_reboot:
      strategy: on_exception # Use 'always' to reboot the kernel before each request

See https://github.com/Baldinof/roadrunner-bundle#kernel-reboots