{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/8406","repository_url":"https://api.github.com/repos/contao/core","labels_url":"https://api.github.com/repos/contao/core/issues/8406/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/8406/comments","events_url":"https://api.github.com/repos/contao/core/issues/8406/events","html_url":"https://github.com/contao/core/issues/8406","id":165301962,"number":8406,"title":"Extend TL_MODE with \"CRON\"","user":{"login":"garyee","id":5537949,"avatar_url":"https://avatars.githubusercontent.com/u/5537949?v=3","gravatar_id":"","url":"https://api.github.com/users/garyee","html_url":"https://github.com/garyee","followers_url":"https://api.github.com/users/garyee/followers","following_url":"https://api.github.com/users/garyee/following{/other_user}","gists_url":"https://api.github.com/users/garyee/gists{/gist_id}","starred_url":"https://api.github.com/users/garyee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyee/subscriptions","organizations_url":"https://api.github.com/users/garyee/orgs","repos_url":"https://api.github.com/users/garyee/repos","events_url":"https://api.github.com/users/garyee/events{/privacy}","received_events_url":"https://api.github.com/users/garyee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-13T11:50:15Z","updated_at":"2016-07-13T12:22:05Z","closed_at":null,"body":"Hi,\r\n\r\nit would be good to have a simple tool to know if the current code is executed by a Cron-job.\r\nMy idea was, to extend the two Possible values of TL_MODE (\"BE\",\"FE\") with a third option \"CRON\".\r\nThe use-case is, that I have a method which is called from a button in the BE or a cron-job. I would wan't to display an error message (Message Class) in the BE, or write something in the log table.\r\n\r\nOne other positive sideeffect would be that cron would become a source of a log-entry, which means there could be categories of cron log-entrys (like general or error).\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/232338700","html_url":"https://github.com/contao/core/issues/8406#issuecomment-232338700","issue_url":"https://api.github.com/repos/contao/core/issues/8406","id":232338700,"user":{"login":"Toflar","id":481937,"avatar_url":"https://avatars.githubusercontent.com/u/481937?v=3","gravatar_id":"","url":"https://api.github.com/users/Toflar","html_url":"https://github.com/Toflar","followers_url":"https://api.github.com/users/Toflar/followers","following_url":"https://api.github.com/users/Toflar/following{/other_user}","gists_url":"https://api.github.com/users/Toflar/gists{/gist_id}","starred_url":"https://api.github.com/users/Toflar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toflar/subscriptions","organizations_url":"https://api.github.com/users/Toflar/orgs","repos_url":"https://api.github.com/users/Toflar/repos","events_url":"https://api.github.com/users/Toflar/events{/privacy}","received_events_url":"https://api.github.com/users/Toflar/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T12:22:05Z","updated_at":"2016-07-13T12:22:05Z","body":"Are you talking about cronjobs that are triggered via the `cron.php`?"}}
{"actor":{"display_login":"Toflar"}}