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\EventSubscriber; | |
use Doctrine\Bundle\DoctrineBundle\EventSubscriber\EventSubscriberInterface; | |
use Doctrine\ORM\Event\OnFlushEventArgs; | |
use Doctrine\ORM\Event\PostFlushEventArgs; | |
use Doctrine\ORM\Event\PreUpdateEventArgs; | |
use Doctrine\ORM\Events; |
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
#[Route('/{id}/edit', name: 'airport_edit', methods: ['GET', 'POST'])] | |
public function edit(Request $request, Airport $airport): Response | |
{ | |
$form = $this->createForm(AirportType::class, $airport); | |
$form->handleRequest($request); | |
if ($form->isSubmitted() && $form->isValid()) { | |
$this->entityManager->flush(); | |
return $this->redirectOrResponse($request); |
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\Handler; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Monolog\Handler\AbstractProcessingHandler; | |
use Monolog\LogRecord; | |
use Satur\DatabaseBundle\Entity\Log; | |
use Symfony\Bundle\SecurityBundle\Security; |
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\EventSubscriber; | |
use Doctrine\Bundle\DoctrineBundle\EventSubscriber\EventSubscriberInterface; | |
use Doctrine\ORM\Event\PreUpdateEventArgs; | |
use Doctrine\ORM\Events; | |
use Doctrine\Persistence\Event\LifecycleEventArgs; | |
use Psr\Log\LoggerInterface; |
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\Form; | |
use App\Entity\Domain; | |
use App\Entity\EmailVirtual; | |
use App\Entity\EmailVirtualDestination; | |
use App\Repository\EmailVirtualRepository; | |
use App\Service\CurrentDomainService; | |
use Symfony\Component\Form\AbstractType; |
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\Form; | |
use App\Entity\Domain; | |
use App\Entity\EmailVirtual; | |
use App\Entity\EmailVirtualDestination; | |
use App\Repository\EmailVirtualRepository; | |
use App\Service\CurrentDomainService; | |
use Symfony\Component\Form\AbstractType; |
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
import Sortable from "stimulus-sortable" | |
export default class extends Sortable { | |
connect() { | |
super.connect() | |
this.defaultOptions | |
} | |
async end({ item, newIndex }) { |
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
2017-05-11 16:00:00 1832.97 USD -0.06% 619.75 + 0.0447 null 1.91% 0.031060 BTC 2897.41 USD 195.43% +61.48% | |
{ days: 90, | |
profit_stop_enable_pct: 10, | |
profit_stop_pct: 1, | |
sell_rate: -0.006, | |
trend_ema: 36, | |
period: '1h', | |
strategy: 'trend_ema_rate', | |
sell_stop_pct: 4, | |
buy_stop_pct: 0, |