Skip to content

Commit

Permalink
Use type TransportRegistry instead of ObjectRegistry.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 21, 2018
1 parent 726dd7f commit 406cd08
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Mailer/TransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
namespace Cake\Mailer;

use Cake\Core\ObjectRegistry;
use Cake\Core\StaticConfigTrait;
use InvalidArgumentException;

Expand All @@ -28,7 +27,7 @@ class TransportFactory
/**
* Transport Registry used for creating and using transport instances.
*
* @var \Cake\Core\ObjectRegistry
* @var \Cake\Mailer\TransportRegistry
*/
protected static $_registry;

Expand All @@ -46,7 +45,7 @@ class TransportFactory
/**
* Returns the Transport Registry used for creating and using transport instances.
*
* @return \Cake\Core\ObjectRegistry
* @return \Cake\Mailer\TransportRegistry
*/
public static function getRegistry()
{
Expand All @@ -62,10 +61,10 @@ public static function getRegistry()
*
* Also allows for injecting of a new registry instance.
*
* @param \Cake\Core\ObjectRegistry $registry Injectable registry object.
* @param \Cake\Mailer\TransportRegistry $registry Injectable registry object.
* @return void
*/
public static function setRegistry(ObjectRegistry $registry)
public static function setRegistry(TransportRegistry $registry)
{
static::$_registry = $registry;
}
Expand Down

0 comments on commit 406cd08

Please sign in to comment.