for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace HeroesofAbenez\Chat;
use Nette\Application\UI\Form;
final class ChatPresenter extends \Nette\Application\UI\Presenter
{
/** @inject */
public IExampleChatControlFactory $chatFactory;
public NewChatMessageFormFactory $newChatMessageFormFactory;
public function formatTemplateFiles(): array
return [__DIR__ . "/chat.latte"];
}
protected function createComponentNewMessageForm(): Form
return $this->newChatMessageFormFactory->create($this->chatFactory->create());