/**
  * {@inheritdoc}
  */
 public function getConfiguration(Notification $notification)
 {
     if ($notification->hasNotifierAlias()) {
         try {
             return $this->getDataBaseConfiguration($notification->getNotifierAlias(), $notification->getType());
         } catch (UndefinedNotifierConfigurationException $e) {
             return $this->getFileConfiguration($notification->getNotifierAlias());
         }
     }
     if (null !== $notification->getFrom()) {
         $from = json_decode($notification->getFrom(), true);
         if (null === $from) {
             throw new ConfigurationParseErrorException($notification->getFrom());
         } elseif (count($from) > 0) {
             return $from;
         }
     }
     return $this->getFileConfiguration();
 }
 /**
  * @dataProvider getProvidedData
  */
 public function testGetFromDecoded(Notification $emailNotification)
 {
     $this->assertEquals(json_decode($emailNotification->getFrom(), true), $emailNotification->getFromDecoded());
 }