This file contains 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\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Sonata\MediaBundle\Entity\BaseMedia as BaseMedia; | |
/** | |
* @ORM\Entity(repositoryClass="App\Repository\MediaRepository") | |
*/ |
This file contains 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\EventSubscriber; | |
use App\Manager\SettingManager; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpKernel\KernelEvents; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\Routing\RouterInterface; |
This file contains 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
# уже реализован в app.models.enums | |
class Operator(Enum): | |
EQ = 'EQ' | |
... | |
# уже реализован в app.models.enums | |
class DataType(Enum): | |
INTEGER='INTEGER' | |
... | |
This file contains 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
# app/models/enums.py | |
class IndicatorType(StrEnum): | |
PEOPLE = 'PEOPLE' | |
QUANTITY = 'QUANTITY' | |
QUALITY = 'QUALITY' | |
FINANCE = 'FINANCE' | |
# app/services/indicators/evaluators/base.py | |
Evaluable = TypeVar('Evaluable') # Это может быть Client, Account, Project, etc. |