From 06b7a1240456282c563dc27c130d59b938fa0e93 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 3 Jun 2015 03:21:24 +0200 Subject: [PATCH] Use contracts for typehints where possible. --- .../core/src/Core/Formatter/FormatterManager.php | 11 +++++------ .../Core/Handlers/Events/EmailConfirmationMailer.php | 4 ++-- .../src/Core/Notifications/NotificationMailer.php | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/framework/core/src/Core/Formatter/FormatterManager.php b/framework/core/src/Core/Formatter/FormatterManager.php index 0c6c55fc0..7ca65cce6 100644 --- a/framework/core/src/Core/Formatter/FormatterManager.php +++ b/framework/core/src/Core/Formatter/FormatterManager.php @@ -1,6 +1,6 @@ container = $container ?: new Container; + $this->container = $container; } public function add($name, $formatter, $priority = 0) diff --git a/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php b/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php index c0c11aafa..ff6d6f896 100755 --- a/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php +++ b/framework/core/src/Core/Handlers/Events/EmailConfirmationMailer.php @@ -1,10 +1,10 @@