for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Router\Dispatcher;
trait DispatcherAwareTrait
{
private ?DispatcherInterface $dispatcher = null;
public function getDispatcher(): ?DispatcherInterface
return $this->dispatcher;
}
public function withDispatcher(DispatcherInterface $dispatcher): DispatcherAwareInterface
$new = clone $this;
$new->dispatcher = $dispatcher;
return $new;
return $new
Yiisoft\Router\Dispatcher\DispatcherAwareTrait
Yiisoft\Router\Dispatcher\DispatcherAwareInterface