Skip to content

Instantly share code, notes, and snippets.

<?php
final class DocumentRepositoryMap {
private static $map = [
'Nakladnaya' => DocumentServiceProviderNakladnaya::class,
];
public static function getRepositoryProvider(string $providerKey) :string
imports:
- { resource: database.yml }
- { resource: services.yml }
- { resource: types.yml }
- { resource: routes_config.yml }
<?php
namespace Components\Core;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
class Container
{
/** @var Container */
<?php
namespace App\Models\CodeBlocks\Validator;
use App\Models\CodeBlocks\Decorator\CodeBlockTypesCIValidationContract;
use App\Models\Interfaces\ServiceValidable;
use App\ValueObject\Email;
use Components\Core\Container;
use App\Models\General\CI;
use Guzzle\Service\Description\ValidatorInterface;
<?php
namespace App\Models\CodeBlocks\Validator;
use LogicException;
use Symfony\Component\Validator\Constraints\Choice;
use Symfony\Component\Validator\Constraints\Collection;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Regex;
<?php
namespace App\Module\Sender\Factory;
use InvalidArgumentException;
use App\Module\Sender\ChannelServiceProvider\ChannelsServiceProvider;
use App\Module\Sender\Interfaces\IMessage;
use App\Module\Sender\Manager\EmailManagerService;
use App\Module\Sender\Manager\ViberManagerService;
@BerezhniyDmitro
BerezhniyDmitro / flat.md
Created October 25, 2018 09:42 — forked from zmts/flat.md
Flat Array

Flatten array in ES6

[1, 2, 3, [4, 5, [6, 7]]].flat() // >> [1, 2, 3, 4, 5, [6, 7]]
[1, 2, 3, [4, 5, [6, 7]]].flat(Infinity) // >> [1, 2, 3, 4, 5, 6, 7]
import _ from 'lodash';
import { EmptySchemaException, DuplicateCodeBlockInStack } from '../exception/CodeBlockExceptions';
import codeBlockPromiseFactory from '../factory/CodeBlockPromiseFactory.js';
/**
* Дефолтный блок
*
* @type {{placeholder: string, active: boolean}}
*/
const defaultCodeBlock = {
import _ from 'lodash';
import { EmptySchemaException, DuplicateCodeBlockInStack } from '../exception/CodeBlockExceptions';
import codeBlockPromiseFactory from '../factory/CodeBlockPromiseFactory.js';
/**
* Дефолтный блок
*
* @type {{placeholder: string, active: boolean}}
*/
const defaultCodeBlock = {
<template>
<div id="service-page">
<v-tabs v-model="active" color="blue" slider-color="grey lighten-2">
<v-tab v-for="title in titles" :key="title.title" ripple>
{{ title.title }}
</v-tab>
<v-tab-item :key="1">
<service-main-page
:main="currentServicePageState.main"
:isEditPage="isEditPage"