Skip to content

Instantly share code, notes, and snippets.

View thedomeffm's full-sized avatar
😎
CEO of my own dreams.

Dome thedomeffm

😎
CEO of my own dreams.
View GitHub Profile
@thedomeffm
thedomeffm / UniqueInCollection.php
Created August 27, 2021 18:40
Mongo ODM Unique Assert
<?php declare(strict_types=1);
namespace App\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* @Annotation
*/
class UniqueInCollection extends Constraint
@thedomeffm
thedomeffm / debug.css
Created October 2, 2022 12:30
CSS overflow seeker
* {
box-sizing: border-box;
outline: 1px solid limegreen !important;
}
@thedomeffm
thedomeffm / Dockerfile
Last active May 12, 2023 06:22
Symfony Messenger | Digitalocean App Platform | Dockerfile | Supervisor
FROM composer:2.5 AS build
WORKDIR /application
ENV APP_ENV=prod
COPY . .
RUN composer install --no-dev --no-scripts --ignore-platform-reqs --optimize-autoloader