Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 5, 2023
1 parent 388602f commit 8a5452b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
3 changes: 0 additions & 3 deletions src/Core/Attributes/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ class Controller implements ContainerAttributeInterface
* Controller constructor.
*
* @param string|null $config
* @param string|null $module
* @param array $views
*/
public function __construct(
public ?string $config = null,
public ?string $module = null,
public array $views = []
) {
}
Expand Down Expand Up @@ -61,7 +59,6 @@ public function __invoke(AttributeHandler $handler): callable
$container->get(AppContextInterface::class),
$handler(...$args)
))
->setModule($this->module)
->setViewMap($this->views);
}
}
20 changes: 0 additions & 20 deletions src/Core/Controller/DelegatingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,26 +108,6 @@ public function setViewMap(array $viewMap): static
return $this;
}

/**
* @return string|null
*/
public function getModule(): ?string
{
return $this->module;
}

/**
* @param string|null $module
*
* @return static Return self to support chaining.
*/
public function setModule(?string $module): static
{
$this->module = $module;

return $this;
}

/**
* @param Throwable $e
*
Expand Down

0 comments on commit 8a5452b

Please sign in to comment.