https://en.wikipedia.org/wiki/Command_pattern
Um texto que usa JOBs - de forma errada - para implementar service layer em projetos Laravel.
https://stackoverflow.com/questions/52895669/laravel-patterns-usage-of-jobs-vs-services
https://en.wikipedia.org/wiki/Command_pattern
Um texto que usa JOBs - de forma errada - para implementar service layer em projetos Laravel.
https://stackoverflow.com/questions/52895669/laravel-patterns-usage-of-jobs-vs-services
| <?php | |
| namespace Doctrine\DBAL\Logging; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| use Symfony\Component\HttpKernel\KernelInterface; | |
| use function microtime; | |
| use function exec; | |
| /** |
| RUN apt update | |
| RUN apt upgrade -y | |
| RUN apt install -y apt-utils | |
| RUN a2enmod rewrite | |
| RUN apt install -y libmcrypt-dev | |
| RUN docker-php-ext-install mcrypt | |
| RUN apt install -y libicu-dev | |
| RUN docker-php-ext-install -j$(nproc) intl | |
| RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
| RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |
| <?php | |
| // Slim 4. | |
| $routes = $app->getRouteCollector()->getRoutes(); | |
| $output = []; | |
| /** Slim\Routing\Route $route */ | |
| foreach ($routes as $route) { | |
| $output[] = [ |
| <?php | |
| /** | |
| * Dot notation for access multidimensional arrays. | |
| * | |
| * $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
| * | |
| * $value = $dn->get('bar.baz.foo'); // $value == true | |
| * | |
| * $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
| * |
| <?php | |
| namespace Core\SomeDomain\Application\DTOs; | |
| use Exception; | |
| use Illuminate\Contracts\Validation\ValidatesWhenResolved; | |
| use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; | |
| class SampleInput implements ValidatesWhenResolved | |
| { |
| Ano | Presidente | Partido | Ideologia |
|---|---|---|---|
| 1889 | Deodoro da Fonseca | Nenhum (militar) | Centro-direita |
| 1891 | Floriano Peixoto | Nenhum (militar) | Centro-direita |
| 1894 | Prudente de Morais | PRP | Centro-direita |
| 1898 | Campos Sales | PRP | Centro-direita |
| 1902 | Rodrigues Alves | PRP | Centro-direita |