Skip to content

Commit

Permalink
fix: use $container
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisio committed Feb 26, 2020
1 parent 9f51b39 commit ced740d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhoneManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PhoneManager extends Manager implements Contracts\Factory
*/
protected function createTwilioDriver(): Twilio
{
$config = $this->app['config']->get('phone.drivers.twilio');
$config = $this->container['config']->get('phone.drivers.twilio');

$twilio = new TwilioClient($config['account_sid'], $config['auth_token']);

Expand All @@ -30,6 +30,6 @@ protected function createTwilioDriver(): Twilio
*/
public function getDefaultDriver()
{
return $this->app['config']->get('phone.default');
return $this->container['config']->get('phone.default');
}
}
3 changes: 3 additions & 0 deletions tests/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public function testValidatePhoneCountryParamsLessThanZero()
$this->assertTrue($validator->passes());
}

/**
* @return \Illuminate\Validation\Validator
*/
protected function getValidator($phone, $rules)
{
return Validator::make([
Expand Down

0 comments on commit ced740d

Please sign in to comment.