简体   繁体   中英

Accessing the URL in the Symfony 1.4 Task

Our project have all the JSON webservices implemented in one module named webservice.

Now I have implemented one public method in this module which have no template. I have set this by using return sfView:NONE statement.

This public method can accessed through the url /cron. Basically it implements some algorithm as per our project requirement. This method needs no input parameter. This method can be accessed by the url as defined in the routing.yml.

Now I want to create the Symfony task which can hit this URL.

Help?

This should help you: http://www.symfony-project.org/cookbook/1_2/en/tasks

Its for Version 1.2, but most of the info is still valid.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM