Commit Graph
7 Commits
Author SHA1 Message Date
samapraku 8a1718c606 Upgrade tests to PHPUnit 9 2020-08-18 21:12:03 +02:00
Vaidas Lungis a473073ba0 replace di['api_request_data'] with di['array_get'] 2015-03-26 10:57:37 +02:00
4Giedrius 66f285a045 Added tests for $di['array_get'] 2015-03-25 17:55:50 +02:00
Vaidas Lungis c172a80e3e create Box\Mod\Api\Request class and add it to DI
Similar to Box_Request.
Purpose - use it when need to get param item from api call request.

Instead of
$c1 = isset($data['custom_1']) ? $data['custom_1'] : NULL ;
Use
$ci = $this->di['api_request_data']->get('custom_1' [, $defaultValue]);

This way we can reduce nPath complexity
2015-03-19 15:32:01 +02:00
Vaidas Lungis a57d9f7092 reworked translation implementation
translation object added into DI
issue #207
2015-01-15 18:26:30 +02:00
Vaidas Lungis 606874a333 Box_password added to Dependency Injector 2014-11-13 13:55:30 +02:00
fordnox 056f31c49e Move Di test to integration test as it requires DB connection 2014-11-03 13:10:50 +02:00