Unverified Commit e1a82682 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch Committed by Mateu Aguiló Bosch
Browse files

Issue #3293455 by e0ipso, andypost: Allow altering components created elsewhere

parent 199f900d
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Component/ComponentDiscovery.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ class ComponentDiscovery {
      )
    );
    $this->cache->setMultiple(array_reduce(
      $components,
      array_values($this->components),
      static fn(array $items, Component $component) => array_merge(
        $items,
        ['component::' . $component->getId() => ['data' => $component]]
+1 −1
Changes for src/Component/ComponentMetadata.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ final class ComponentMetadata {
   *
   * @var string[]
   */
  private array $hooks = [];
  private array $hooks;

  /**
   * The name safe for using in PHP functions.