Skip to content

Instantly share code, notes, and snippets.

View GrzegorzBandur's full-sized avatar

Grzegorz Bandur GrzegorzBandur

View GitHub Profile
@GrzegorzBandur
GrzegorzBandur / Readme.md
Last active January 23, 2022 09:54
RESTful API with Symfony 4.4 + FOSRestBundle + FOSOauthServerBundle + FOSUserBundle

RESTful API with Symfony 4.4 + FOSRestBundle + FOSOauthServerBundle + FOSUserBundle

To start writing RestFull API in symfony we will need bundles:

        "friendsofsymfony/oauth-server-bundle": "^1.6",
        "friendsofsymfony/rest-bundle": "^2.7",
        "friendsofsymfony/user-bundle": "^2.1",
        "jms/serializer-bundle": "^3.5",
        "nelmio/api-doc-bundle": "^3.5",
        "sensio/framework-extra-bundle": "^5.2",
        "symfony/apache-pack": "^1.0",
@GrzegorzBandur
GrzegorzBandur / OnlyLastRedeliveryStampMiddleware.php
Last active November 8, 2019 12:21
Symfony Messenger: Fix problem with too many amount of Redelivery Stamps - Leave only last one
<?php
declare(strict_types=1);
namespace App\MessageBus\Middleware;
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\Middleware\MiddlewareInterface;
use Symfony\Component\Messenger\Middleware\StackInterface;
use Symfony\Component\Messenger\Stamp\DelayStamp;
use Symfony\Component\Messenger\Stamp\RedeliveryStamp;
@GrzegorzBandur
GrzegorzBandur / DockerCommands.md
Last active February 2, 2020 10:12
Useful docker commands

Build && run docker enviroment

docker-compose up --build

Build docker enviroment

docker-compose build

Stops containers and removes containers, networks, volumes, and images created by up.