mardraze / core-bundle
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Type:project
This package is not auto-updated.
Last update: 2025-02-21 19:18:33 UTC
README
=== You can make your software 2 time faster.
Problems:
- How to take parameter or service instance in Controller? In Command? In Service? In Twig Helper? In Event Listener?
Everywhere simmilar
$this->depedencies->getParameter('param_name');
- SHow to send email faster?
$this->depedencies->sendEmail('email@example.com', 'AppBundle:Email:sample_email.html.twig', array('name' => 'Marcin'));
#AppBundle:Email:sample_email.html.twig'
{%block subject%}Example email to {{name}}{% endblock %}
{%block body%}Hello {{name}}{% endblock %}