Skip to content

Instantly share code, notes, and snippets.

View TatTran22's full-sized avatar
🎯
Focusing

Tat Tran TatTran22

🎯
Focusing
View GitHub Profile
@TatTran22
TatTran22 / index.tsx
Created October 10, 2024 14:38 — forked from m5r/index.tsx
bullmq job queue in Remix
import notifierQueue from "~/queues/notifier.server.ts";
export const loader = async () => {
await notifierQueue.add("test", { emailAddress: "[email protected]" });
return null;
};
@TatTran22
TatTran22 / IndexComposition.php
Created November 1, 2021 16:18
Controller Composition vs Inheritance
<?php
namespace Macademy\JsFun\Controller\Index;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\View\Result\PageFactory;
// Composition implements an action interface. Common interfaces to implement:
// Create - HttpPutActionInterface
// Read - HttpGetActionInterface
// Update - HttpPostActionInterface