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 | |
// src/Twig/Form/TwigRendererEngine.php | |
namespace App\Twig\Form; | |
use Symfony\Component\Form\AbstractRendererEngine; | |
use Symfony\Component\Form\FormView; | |
use Symfony\Component\VarDumper\VarDumper; | |
use Twig\Environment; |
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 | |
// src/Form/Extension/CartItemTypeExtension.php | |
declare(strict_types=1); | |
namespace App\Form\Extension; | |
use Sylius\Bundle\OrderBundle\Form\Type\CartItemType; | |
use Sylius\Bundle\ProductBundle\Form\Type\ProductVariantChoiceType; |
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 | |
// src/App/Sorting/Sorter.php | |
declare(strict_types=1); | |
namespace App\Sorting; | |
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; | |
use Sylius\Component\Grid\Data\DataSourceInterface; |
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 | |
// src/CommandHandler/Account/ResetPasswordHandler.php | |
declare(strict_types=1); | |
namespace App\CommandHandler\Account; | |
use Sylius\Bundle\ApiBundle\Command\Account\ResetPassword; | |
use Sylius\Component\Core\Model\ShopUserInterface; |
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 | |
// src/EventListener/CacheControlSubscriber.php | |
declare(strict_types=1); | |
namespace App\EventListener; | |
use App\SectionResolver\ShopCustomerAccountSubSection; | |
use Sylius\Bundle\AdminBundle\SectionResolver\AdminSection; |
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 | |
// src/EventListener/XFrameOptionsSubscriber.php | |
namespace App\EventListener | |
final class XFrameOptionsSubscriber implements EventSubscriberInterface | |
{ | |
public static function getSubscribedEvents(): array | |
{ |
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 | |
// src/Uploader/ImageUploader.php | |
declare(strict_types=1); | |
namespace App\Uploader; | |
use enshrined\svgSanitize\Sanitizer; | |
use Gaufrette\Filesystem; |
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
// src/AppBundle/Entity/ProductBundle.php | |
<?php | |
declare(strict_types=1); | |
namespace AppBundle\Entity; | |
use Sylius\Component\Resource\Model\ResourceInterface; | |
class ProductBundle implements ResourceInterface |
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 %namespace%; | |
use PhpSpec\ObjectBehavior; | |
/** | |
* @author Łukasz Chruściel <lukasz.chrusciel@lakion.com> | |
*/ | |
class %name% extends ObjectBehavior |
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
/** | |
* @param | |
* | |
* @return | |
*/ | |
public function %name%(%arguments%) | |
{ | |
// TODO: write logic here | |
} |
NewerOlder