E
E
e-hot2015-09-14 22:55:52
symfony
e-hot, 2015-09-14 22:55:52

How to initiate the operation of Symfony2 controllers (services, individual php scripts or entire bundles) in UBUNTU OS?

Hi all. Advise those who are in the subject what to study and smoke in order to implement the following functionality:
1. There is a site functionality written in Symfony 2.
2. Symfony 2 is installed on Ubuntu 12.04 (and higher), there is also nginx, php5-fpm, mariadb , phpmyadmin, postfix
3. It is supposed to periodically launch a specific php-functional (most likely the controllers should twitch - so far I assume so), written in Symfony 2. Googled superficially - it all comes down to the crontab scheduler. Are there any other possibilities on that topic?
And in the development of the described situation:
If on the server it is necessary to programmatically parse the mail incoming to the postfix mail server according to the following scheme: if the letter came from a specific email and the email contains a specific text, then you need to run a specific php script located in Symfony 2 on the current server. Here you also need to use crontab or some features must already be present?
Thanks in advance for your advice. There are still a bunch of questions on this topic, but I'm afraid to prescribe them so as not to confuse the respondents. Perhaps further questions will appear in the course of the conversation, thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2015-09-14
@e-hot

It is necessary to pull not controllers, but services.
symfony.com/doc/current/cookbook/console/console_c...
symfony.com/doc/current/components/console/introdu...
That is, we run commands
using cron, which in turn will pull the service, where all the magic will be .
Similarly, in the controller, we pull the service and return the Response.

E
e-hot, 2015-09-15
@e-hot

RabbitMqBundle - does it make sense to use this solution? Is it worth it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question