Ссылки на материалы, позволяющее лучше понять оригинальную идею.
Java and C++ make you think that the new ideas are like the old ones. Java is the most distressing thing to hit computing since MS-DOS.
Alan Kay
| parameters: | |
| # Adds a fallback DATABASE_URL if the env var is not set. | |
| # This allows you to run cache:warmup even if your | |
| # environment variables are not available yet. | |
| # You should not need to change this value. | |
| env(DATABASE_URL): '' | |
| doctrine: | |
| dbal: | |
| # configure these for your database server |
| <?php | |
| declare(strict_types=1); | |
| namespace App\Validator\Constraints; | |
| use Symfony\Component\Validator\Constraints\Composite; | |
| /** | |
| * @Annotation() |
| // Aspect interface for combinator | |
| interface Aspect { | |
| operator fun <R> invoke(block: () -> R): R | |
| } | |
| // Aspect combinator | |
| operator fun Aspect.plus(other: Aspect) = object : Aspect { | |
| override fun <R> invoke(block: () -> R): R = | |
| this@plus { | |
| other { |
| <?php | |
| namespace App\Request\ParamConverter; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | |
| use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Validator\ConstraintViolationListInterface; | |
| final class ConstraintViolationsConverter implements ParamConverterInterface |
| import axios from 'axios' | |
| import toast from './toast' | |
| function errorResponseHandler(error) { | |
| // check for errorHandle config | |
| if( error.config.hasOwnProperty('errorHandle') && error.config.errorHandle === false ) { | |
| return Promise.reject(error); | |
| } | |
| // if has response show the error |
| <?php | |
| declare(strict_types=1); | |
| namespace App\Command; | |
| use App\Symfony\EventDispatcher; | |
| use Doctrine\DBAL\Driver\Connection; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Component\Console\ConsoleEvents; |
| <?php | |
| namespace YourApp\Repository\Query; | |
| use Doctrine\DBAL\Connection; | |
| use Doctrine\DBAL\Schema\Identifier; | |
| /** | |
| * Class BulkInsertQuery | |
| * |
| <?php | |
| use Symfony\Component\PropertyAccess\PropertyAccessor; | |
| use Symfony\Component\PropertyAccess\PropertyPath; | |
| /** | |
| * A property accessor that allows you to rewrite a property path for setters and getters. | |
| */ | |
| class CustomPropertyAccessor extends PropertyAccessor | |
| { | |
| /** |