title: Why the fatal error is coming even after including proper namespaces?
body: <p>Following is my program written to send push-notifications using php-pushwoosh library:</p>
  
  <pre><code>&lt;?php
  ini_set('display_startup_errors',1);
  ini_set('display_errors',1);
  error_reporting(-1);
  
  use Gomoob\Pushwoosh\Client\Pushwoosh;
  use Gomoob\Pushwoosh\Model\Request\CreateMessageRequest;
  use Gomoob\Pushwoosh\Model\Notification\Notification;
  use Gomoob\Pushwoosh\Exception;
  
  require __DIR__.'/vendor/autoload.php';
  
  /*require('../config.php');
  require('../common.php');*/
  
  $data = json_decode(file_get_contents('php://input'), true);
  
  $auth_token = $data['auth_token'];
  $app_code   = $data['app_code'];
  $page_no    = $data['page_no'];
  $page_total = $data['page_total'];
  
  define('PW_AUTH', $auth_token);
  define('PW_APPLICATION', $app_code);
  
  // Create a Pushwoosh client
  $pushwoosh = Pushwoosh::create()
      -&gt;setApplication(PW_AUTH)
      -&gt;setAuth(PW_APPLICATION);
  
  if(!empty($page_no) &amp;&amp; !empty($page_total)) {
  
    if (!Phpfox::isUser()) {
      $flag = false;
      $response["error"] = "error";
      $response["message"] = "Please login";
      echoRespnse(401, $response);
  
    } else {    
  
      $notificaions = Phpfox::getService('notification')-&gt;getAllNotifications($page_no,$page_total);
  
      if(!empty($notificaions)) {
        $notificaions = walk_recursive_remove($notificaions, 'unset_null_children');
        for($i=0;$i&lt;count($notificaions);$i++) {
          $notificaions[$i]['message'] = stripslashes(strip_tags($notificaions[$i]['message']));
          $notificaions[$i]['profile_image'] = image_creator($notificaions[$i]['user_image']);
        }
        $notifications_data = json_encode($notifications);      
      } 
    }  
  } else {
    $notifications_data = "Error in request";
  }   
  
  // Create a request for the '/createMessage' Web Service
  $request = CreateMessageRequest::create()
      -&gt;addNotification(Notification::create()-&gt;setContent($notifications_data));
  
  // Call the REST Web Service
  $response = $pushwoosh-&gt;createMessage($request);
  
  // Check if its ok
  if($response-&gt;isOk()) {
    print 'Great, my message has been sent !';
  } else {
    print 'Oops, the sent failed :-( '; 
    print 'Status code : ' . $response-&gt;getStatusCode()." ";
    print 'Status message : ' . $response-&gt;getStatusMessage();
  }
  ?&gt;
  </code></pre>
  
  <p>After executing it on the server I got following fatal error :</p>
  
  <pre><code>Fatal error: Uncaught exception 'Gomoob\Pushwoosh\Exception`\PushwooshException' with message 'None of the 'application' or 'applicationsGroup' properties are set !' in /var/www/api/gomoob-php-pushwoosh/vendor/gomoob/php-pushwoosh/src/main/php/Gomoob/Pushwoosh/Client/Pushwoosh.php:106 Stack trace: #0 /var/www/api/gomoob-php-pushwoosh/push_notifications.php(61): Gomoob\Pushwoosh\Client\Pushwoosh-&gt;createMessage(Object(Gomoob\Pushwoosh\Model\Request\CreateMessageRequest)) #1 {main} thrown in /var/www/api/gomoob-php-pushwoosh/vendor/gomoob/php-pushwoosh/src/main/php/Gomoob/Pushwoosh/Client/Pushwoosh.php on line 106`
  </code></pre>
  
  <p>If you want to check the hierarchy of name spaces I included you can check at this <a href="http://gomoob.github.io/php-pushwoosh/phpdocumentor/" rel="nofollow">php-pushwoosh namespace hierarchy</a></p>
  
  <p>Thanks in advance.</p>