File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ public function __construct(ParameterBagInterface $parameterBag)
36
36
public function cron (Request $ request )
37
37
{
38
38
$ ip = $ request ->server ->get ('REMOTE_ADDR ' );
39
- $ allowed_ip_external = explode (", " , $ _ENV [ " IP_CRON_EXTERNAL " ] );
39
+ $ allowed_ip_external = explode (", " , $ this -> getParameter ( " ribs_cron_ip_external " ) );
40
40
41
- if (in_array ($ ip , $ allowed_ip_external ) || $ ip === $ _ENV [ " IP_CRON_INTERNAL " ] ) {
41
+ if (in_array ($ ip , $ allowed_ip_external ) || $ ip === $ this -> getParameter ( " ribs_cron_ip_internal " ) ) {
42
42
$ this ->crons = $ this ->getParameter ("ribs_cron " );
43
43
$ json_exec = $ this ->getCronFile ();
44
44
$ now = new DateTime ();
@@ -170,4 +170,4 @@ private function createRecursiveDirFromRoot($path)
170
170
171
171
return $ new_path ;
172
172
}
173
- }
173
+ }
You can’t perform that action at this time.
0 commit comments