This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Validator\Constraints; | |
| use Symfony\Component\Validator\Constraint; | |
| /** | |
| * @Annotation | |
| */ | |
| class DtoUniqueEntity extends Constraint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace App\Doctrine\EventListener; | |
| use Doctrine\DBAL\Schema\PostgreSQLSchemaManager; | |
| use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; | |
| final class FixPostgreSQLDefaultSchemaListener |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const MINUTE = 60, | |
| HOUR = MINUTE * 60, | |
| DAY = HOUR * 24, | |
| YEAR = DAY * 365; | |
| function getTimeAgo(date) { | |
| const secondsAgo = Math.round((+new Date() - date) / 1000); | |
| if (secondsAgo < MINUTE) { | |
| return secondsAgo + "s"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace Qbil\CommonBundle\Extension; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Webmozart\Assert\Assert; | |
| final class MonospaceResponse extends Response |
OlderNewer