stampie / stampie-bundle Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://stampie.github.io/
License: MIT License
Home Page: https://stampie.github.io/
License: MIT License
the class parameter is wrong.
To allow more people direct access to push.
It should be moved to stampie/stampie-bundle
for consistency
Hello everyone.
I am trying to implement the bundle to use Mandrill, but I am getting the following error
The definition "my_project.mailer.mailer" has a reference to an abstract definition "hb_stampie.mailer.mandrill". Abstract definitions cannot be the target of references.
I have a mailers.yml where I define my services:
parameters:
my_project.mailer.sender_name: My Project
my_project.mailer.deploy_instance: my_project
services:
my_project.mailer.buzz.client:
class: Buzz\Client\Curl
my_project.mailer.buzz.factory:
class: Buzz\Message\Factory\Factory
buzz:
class: Buzz\Browser
arguments:
- '@my_project.mailer.buzz.client'
- '@my_project.mailer.buzz.factory'
my_project.mailer.mailer:
class: MyProject\MailerBundle\Mailer\Mailer
arguments:
- '@hb_stampie.mailer.mandrill'
- '@templating'
- %my_project.mailer.sender_name%
- %my_project.mailer.deploy_instance%
My config.yml goes like this:
hb_stampie:
adapter: buzz
mailer: mandrill
server_token: '%mandrill_api_key%'
extra:
delivery_address: '%mailer_delivery_address%'
And my service MyProject\MailerBundle\Mailer\Mailer
goes like this (I put only the constructor function)
namespace MyProject\MailerBundle\Mailer;
use MyProject\WebBundle\Entity\Member;
use Stampie\Identity;
use Stampie\MailerInterface as StampieMailerInterface;
class Mailer implements MailerInterface
{
private $mailer;
private $twig;
private $defaultSenderName;
private $deployInstance;
/**
* @param StampieMailerInterface $mailer
* @param \Twig_Environment $twig
* @param string $defaultSenderName
* @param string $deployInstance
*/
public function __construct(StampieMailerInterface $mailer, \Twig_Environment $twig, $defaultSenderName, $deployInstance)
{
$this->mailer = $mailer;
$this->twig = $twig;
$this->defaultSenderName = $defaultSenderName;
$this->deployInstance = $deployInstance;
}
}
My MailerInterface (implemented by MyProject\MailerBundle\Mailer\Mailer
) is simply the following:
namespace MyProject\MailerBundle\Mailer;
interface MailerInterface
{
/**
* Sends a mail to the recipient(s) using the template.
*
* The template must define 3 blocks: subject, body_text and body_html.
*
* @param Message $message
*/
public function send(Message $message);
}
Now if I look in the config.xml of the henrikbjorn bundle, I do have
<service id="hb_stampie.mailer.mandrill" class="%hb_stampie.mailer.mandrill.class%" abstract="true" />
which means that the hb_stampie.mailer.mandrill
is an abstract class.
What am I missing in the configuration here? What should I do to be able to use Mandrill to send my mails?
Verify that is it still accurate.
Hi guys!
While implementing Stampie for a given project, I faced the case where the DataCollector was not getting messages from the MessageLogger.
I overrided MessageLogger
and StampieDataCollector
in order to add a logger service.
The MessageLogger:preSend
is well called, as far as I saw in my logs. When logging data from the DataCollector:collect
, it seems there are no messages... Should I do something specific here?
Thanks for your time and help!
We should use the best precise one: https://symfony.com/doc/current/bundles/best_practices.html#continuous-integration
A nasty bug exists in the 1.0.0 release. It has been fixed 2 days later but this fix is unreleased, which means that Composer users relying on stable versions won't get it. Please tag the 1.0.1 release
Hi,
what is the best way to configure SpoolMailer or is it not yet supported by the bundle?
Thanks for help!
the bundle integration with the profiler is not fully consistent with the rules of the v2 design of the profiler.
We need to document the changes since last release
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.