Create a new user account:
$ sudo adduser newuser
Add the user to the sudo group:
$ usermod -aG sudo newuser
Switch to the new user account:
$ su - newuser
Verify the superuser privileges by the sudo command:
| <?php declare(strict_types = 1); | |
| namespace App\Commands; | |
| use IPub\MQTTClient; | |
| use Nette; | |
| use React\Promise; | |
| use Symfony\Component\Console; | |
| use Symfony\Component\Console\Input; | |
| use Symfony\Component\Console\Output; |
Create a new user account:
$ sudo adduser newuser
Add the user to the sudo group:
$ usermod -aG sudo newuser
Switch to the new user account:
$ su - newuser
Verify the superuser privileges by the sudo command:
Začátek je jednoduchý, ostatně jako u všech ostatních rozšíření pro Nette framework. Ještě ale než budeme instalovat rozšíření, je potřeba se rozhodnout který typ web socketů budeme chtít implementovat.
Toto rychlé how-to se bude podrobněji zabývat druhou možností a tedy iPub:WebSocketsWAMP!
| class SomeService | |
| { | |
| /** | |
| * @var \Kdyby\Events\EventManager | |
| */ | |
| private $eventManager; | |
| protected function configure() | |
| { | |
| //... |
| <?php | |
| /** | |
| * Control.php | |
| * | |
| * @copyright More in license.md | |
| * @license http://www.ipublikuj.eu | |
| * @author Adam Kadlec http://www.ipublikuj.eu | |
| * @package iPublikuj:AccountModule! | |
| * @subpackage DataGrids | |
| * @since 5.0 |
| <?php | |
| namespace Entities\Widgets; | |
| use Gedmo\Mapping\Annotation as Gedmo; | |
| use Doctrine\ORM\Mapping as ORM, | |
| Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity |