-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
| <?php | |
| class RequestClient | |
| { | |
| protected $curl; | |
| private $baseUrl = env('BASE_URL'); | |
| public function __construct() | |
| { |
| <?php | |
| class RequestClient | |
| { | |
| private $curl; | |
| private $baseUrl = env('BASE_URL'); | |
| public function __construct() | |
| { |
| <?php | |
| class RequestClient | |
| { | |
| private $curl; | |
| private $baseUrl = env('BASE_URL'); | |
| public function __construct() | |
| { |
Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).
| app.factory('PaypalService', ['$q', '$ionicPlatform', 'shopSettings', '$filter', '$timeout', function ($q, $ionicPlatform, shopSettings, $filter, $timeout) { | |
| var init_defer; | |
| /** | |
| * Service object | |
| * @type object | |
| */ | |
| var service = { |