File tree Expand file tree Collapse file tree
etc/infrastructure/php/extensions
src/Shared/Infrastructure/Symfony Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717 - run : docker-compose pull
1818
19- - uses : satackey/action-docker-layer-caching@v0.0.8
19+ - uses : satackey/action-docker-layer-caching@v0.0.11
2020 continue-on-error : true
21-
21+ with :
22+ key : php_ddd_example-cache-${{ secrets.CACHE_VERSION }}-{hash}
23+ restore-keys : |
24+ php_ddd_example-cache-${{ secrets.CACHE_VERSION }}-
2225 - name : Install dependencies
2326 run : make composer-install
2427
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ RUN apk --update upgrade \
1616
1717RUN pickle install apcu-5.1.19
1818
19- ADD etc/infrastructure/php/extensions/amqp .sh /root/install-amqp .sh
19+ ADD etc/infrastructure/php/extensions/rabbitmq .sh /root/install-rabbitmq .sh
2020ADD etc/infrastructure/php/extensions/xdebug.sh /root/install-xdebug.sh
2121RUN apk add git
22- RUN sh /root/install-amqp .sh
22+ RUN sh /root/install-rabbitmq .sh
2323RUN sh /root/install-xdebug.sh
2424
2525RUN docker-php-ext-enable \
File renamed without changes.
Original file line number Diff line number Diff line change 1616 <ignoreFiles >
1717 <directory name =" vendor" />
1818 <directory name =" src/Shared/Infrastructure/Bus/Event/RabbitMq" />
19+ <directory name =" src/Shared/Infrastructure/Symfony" />
1920 <directory name =" tests/Shared/Infrastructure/Bus/Event/RabbitMq" />
2021 <directory name =" tests/Shared/Infrastructure/Mink" />
2122 <directory name =" tests/Shared/Infrastructure/PhpUnit/Constraint" />
Original file line number Diff line number Diff line change 55namespace CodelyTv \Shared \Infrastructure \Symfony ;
66
77use CodelyTv \Shared \Domain \Utils ;
8- use Symfony \Component \HttpFoundation \Session \Session ;
8+ use Symfony \Component \HttpFoundation \Session \SessionInterface ;
99
1010final class FlashSession
1111{
1212 private static array $ flashes = [];
1313
14- public function __construct (Session $ session )
14+ public function __construct (SessionInterface $ session )
1515 {
1616 self ::$ flashes = Utils::dot ($ session ->getFlashBag ()->all ());
1717 }
Original file line number Diff line number Diff line change 99use Symfony \Component \HttpFoundation \RedirectResponse ;
1010use Symfony \Component \HttpFoundation \Request ;
1111use Symfony \Component \HttpFoundation \Response as SymfonyResponse ;
12- use Symfony \Component \HttpFoundation \Session \Session ;
12+ use Symfony \Component \HttpFoundation \Session \SessionInterface ;
1313use Symfony \Component \Routing \RouterInterface ;
1414use Symfony \Component \Validator \ConstraintViolationListInterface ;
1515use Twig \Environment ;
@@ -19,7 +19,7 @@ abstract class WebController extends ApiController
1919 public function __construct (
2020 private Environment $ twig ,
2121 private RouterInterface $ router ,
22- private Session $ session ,
22+ private SessionInterface $ session ,
2323 QueryBus $ queryBus ,
2424 CommandBus $ commandBus ,
2525 ApiExceptionsHttpStatusCodeMapping $ exceptionHandler
You can’t perform that action at this time.
0 commit comments