Skip to content

Commit

Permalink
FEATURE: integrate flowpack/jobqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaip committed Jan 26, 2017
1 parent 2ef9b72 commit 332dc1f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Classes/Psmb/Newsletter/Service/FusionMailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use TYPO3\TYPO3CR\Domain\Model\Node;
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
use TYPO3\TYPO3CR\Domain\Service\ContextFactoryInterface;
use Flowpack\JobQueue\Common\Annotations as Job;

/**
* @Flow\Scope("singleton")
Expand Down Expand Up @@ -51,6 +52,8 @@ public function setupObject(ControllerContext $controllerContext, ActionRequest
}

/**
* @Job\Defer(queueName="psmb-newsletter")
*
* @param array $letter
* @throws \Exception
*/
Expand Down
9 changes: 9 additions & 0 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ TYPO3:
requireJsPathMapping:
'Psmb.Newsletter/Views': 'resource://Psmb.Newsletter/Public/JavaScript/Inspector/Views'

Flowpack:
JobQueue:
Common:
queues:
'psmb-newsletter':
className: 'Flowpack\JobQueue\Common\Queue\FakeQueue'
options:
async: true

#Psmb:
# Newsletter:
# globalSettings:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"typo3/neos": "^2.3",
"psmb/registry": "*",
"typo3/swiftmailer": "*",
"tijsverkoyen/css-to-inline-styles": "^2.2"
"tijsverkoyen/css-to-inline-styles": "^2.2",
"flowpack/jobqueue-common": "^1.0"
},
"autoload": {
"psr-0": {
Expand Down

0 comments on commit 332dc1f

Please sign in to comment.