/**
  * Apollo constructor.
  *
  * Populates the class variables
  *
  * @param bool $debug
  * @since 0.1.6 Now checks if the user is a guest before trying to set the timezone
  * @since 0.1.5 Now sets the timezone to organisation timezone
  * @since 0.1.4 Now supports debug bool
  * @since 0.1.3 Security fix
  * @since 0.1.2 Added console object
  * @since 0.0.1
  */
 public function __construct($debug)
 {
     $this->debug = $debug;
     $this->console = new User(1);
     if (!$this->debug) {
         $this->request = new Request();
         $this->user = new User();
         if (!$this->user->isGuest()) {
             date_default_timezone_set($this->user->getOrganisation()->getTimezone());
         }
     }
 }