mardraze/core-bundle

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:CSS

Type:project

v3.0 2018-01-18 11:53 UTC

This package is not auto-updated.

Last update: 2024-04-19 15:32:18 UTC


README

=== You can make your software 2 time faster.

Problems:

  1. 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');
  1. 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 %}