/**
  * Constructor
  *
  * @param  array $options
  *
  * @since  1.0
  */
 public function __construct(array $options = array())
 {
     $options['product_name'] = basename(__DIR__);
     $options['store_instance_indicator'] = true;
     $options['product_namespace'] = 'Plugindata';
     parent::__construct($options);
 }
Пример #2
0
 /**
  * Constructor
  *
  * @param  $options
  *
  * @since  1.0.0
  */
 public function __construct(array $options = array())
 {
     $options['product_name'] = basename(__DIR__);
     $options['store_instance_indicator'] = false;
     $options['product_namespace'] = 'Molajo\\Log\\Logger';
     parent::__construct($options);
 }
Пример #3
0
 /**
  * Constructor
  *
  * @param  array $options
  *
  * @since  1.0.0
  */
 public function __construct(array $options = array())
 {
     $options['product_name'] = basename(__DIR__);
     $options['store_instance_indicator'] = true;
     $options['product_namespace'] = 'Molajo\\User\\Session';
     parent::__construct($options);
 }
 /**
  * Set Dependencies for Instantiation
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->dependencies['applications'] = $this->getApplicationInstances();
     $this->dependencies['request_path'] = $this->dependencies['Request']->path;
     return $this->dependencies;
 }
 /**
  * Identify Class Dependencies for Constructor Injection
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $options = array();
     $this->dependencies['User'] = $options;
     return $this->dependencies;
 }
Пример #6
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     $this->dependencies['Runtimedata'] = array();
     $this->dependencies['Resource'] = array();
     return $this->dependencies;
 }
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     $this->dependencies['Resource'] = array();
     $this->dependencies['Fieldhandler'] = array();
     return $this->dependencies;
 }
Пример #8
0
 /**
  * Constructor
  *
  * @param  $options
  *
  * @since  1.0.0
  */
 public function __construct(array $options = array())
 {
     $options['product_namespace'] = 'Molajo\\Resource\\Configuration\\Registry';
     $options['store_instance_indicator'] = true;
     $options['product_name'] = basename(__DIR__);
     parent::__construct($options);
 }
Пример #9
0
 /**
  * Constructor
  *
  * @param   $options
  *
  * @since   1.0.0
  */
 public function __construct(array $options = array())
 {
     $options['product_namespace'] = 'Molajo\\Controller\\ImageController';
     $options['store_instance_indicator'] = true;
     $options['product_name'] = basename(__DIR__);
     parent::__construct($options);
 }
Пример #10
0
 /**
  * Retrieve a list of Interface dependencies and return the data ot the controller.
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $options = array();
     $this->dependencies['Email'] = $options;
     $this->dependencies['Template'] = $options;
     return $this->dependencies;
 }
Пример #11
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies['Database'] = array();
     $this->dependencies['Query'] = array();
     $this->dependencies['Eventcallback'] = array();
     return $this->dependencies;
 }
Пример #12
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies['Resource'] = array();
     $this->dependencies['Resourcedata'] = array();
     $this->dependencies['Registry'] = array();
     $this->dependencies['Resourcedefault'] = array();
     return $this->dependencies;
 }
Пример #13
0
 /**
  * Define Service Dependencies
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     // Intentionally not instantiating the class in this factory
     // Will be created in Instantiateuser
     parent::setDependencies(array());
     $this->dependencies = array();
     $this->dependencies['Session'] = array();
     return $this->dependencies;
 }
Пример #14
0
 /**
  * Define dependencies or use dependencies automatically defined by base class using Reflection
  *
  * @param   array $reflection
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies = array();
     $this->dependencies['Fieldhandler'] = array();
     $this->dependencies['Runtimedata'] = array();
     $this->dependencies['Resource'] = array();
     $this->dependencies['Database'] = array();
     return $this->dependencies;
 }
 /**
  * Set Dependencies for Instantiation
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $cache_callbacks = array();
     $cache_callbacks['get_cache_callback'] = $this->dependencies['Getcachecallback'];
     $cache_callbacks['set_cache_callback'] = $this->dependencies['Setcachecallback'];
     $cache_callbacks['delete_cache_callback'] = $this->dependencies['Deletecachecallback'];
     $this->dependencies['cache_callbacks'] = $cache_callbacks;
     return $this->dependencies;
 }
Пример #16
0
 /**
  * Constructor
  *
  * @param  array $options
  *
  * @since  1.0
  */
 public function __construct(array $options = array())
 {
     if (isset($options['product_name'])) {
     } else {
         $options['product_name'] = basename(__DIR__);
         $options['store_instance_indicator'] = true;
         $options['product_namespace'] = 'Molajo\\Cache\\Driver';
     }
     parent::__construct($options);
 }
Пример #17
0
 /**
  * Set Dependency values
  *
  * @param   array $dependency_values (ignored in Service Item Adapter, based in from handler)
  *
  * @return  $this
  * @since   1.0.0
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->dependencies['Filters'] = $this->getApplicationFilters();
     $this->dependencies['Actions'] = $this->getApplicationActions();
     $this->dependencies['Runtimedata']->reserved = new stdClass();
     $this->dependencies['Runtimedata']->reserved->filters = $this->dependencies['Filters'];
     $this->dependencies['Runtimedata']->reserved->actions = $this->dependencies['Actions'];
     return $this;
 }
Пример #18
0
 /**
  * Set dependencies
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies = array();
     $options = array('if_exists' => true);
     foreach ($this->dependencies_array as $key => $value) {
         if (isset($this->options[$value])) {
         } else {
             $this->dependencies[$value] = $options;
         }
     }
     return $this->dependencies;
 }
Пример #19
0
 /**
  * Identify Class Dependencies for Constructor Injection
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     /**
      * To make certain all dependencies are filled before Site runs and continues
      * scheduling from the Resources schedule
      */
     $options = array();
     $this->dependencies['Resource'] = $options;
     $this->dependencies['Request'] = $options;
     $this->dependencies['Runtimedata'] = $options;
     return $this->dependencies;
 }
Пример #20
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $logger_request = new stdClass();
     $logger_request->name = 'Debug Logging to File';
     $logger_request->logger_type = 'File';
     $logger_request->levels = array(100, 200, 300, 400, 500, 550, 600);
     $logger_request->context = array();
     $logger_request->context['file_location'] = $this->base_path . '/Sites/2/Logs/DebugLogger.json';
     $options = array();
     $options['logger_requests'] = $logger_request;
     $this->dependencies['Logger'] = $options;
     return $this->dependencies;
 }
Пример #21
0
 /**
  * Define Service Dependencies
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     // Intentionally not instantiating the class in this factory
     // It will be created later in Instantiateuser
     parent::setDependencies(array());
     $this->dependencies = array();
     $options = array();
     $this->dependencies['Request'] = $options;
     $this->dependencies['Cookie'] = $options;
     $this->dependencies['Session'] = $options;
     $this->dependencies['Flashmessage'] = $options;
     $this->dependencies['Runtimedata'] = $options;
     $this->dependencies['Resource'] = $options;
     $this->dependencies['Messages'] = $options;
     $this->dependencies['Mailer'] = $options;
     return $this->dependencies;
 }
Пример #22
0
 /**
  * Set Dependency values
  *
  * @param   array $dependency_values (ignored in Service Item Adapter, based in from adapter)
  *
  * @return  $this
  * @since   1.0.0
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->dependencies['mailer_transport'] = null;
     $this->dependencies['site_name'] = null;
     $this->dependencies['smtpauth'] = null;
     $this->dependencies['smtphost'] = null;
     $this->dependencies['smtpuser'] = null;
     $this->dependencies['smtppass'] = null;
     $this->dependencies['smtpsecure'] = null;
     $this->dependencies['smtpport'] = null;
     $this->dependencies['sendmail_path'] = null;
     $this->dependencies['mailer_disable_sending'] = null;
     $this->dependencies['mailer_transport'] = $this->dependencies['Runtimedata']->application->parameters->mailer_transport;
     $this->dependencies['site_name'] = $this->dependencies['Runtimedata']->application->parameters->application_name;
     switch ($this->dependencies['Runtimedata']->application->parameters->mailer_transport) {
         case 'smtp':
             $this->dependencies['smtpauth'] = $this->dependencies['Runtimedata']->application->parameters->mailer_smtpauth;
             $this->dependencies['smtphost'] = $this->dependencies['Runtimedata']->application->parameters->mailer_smtphost;
             $this->dependencies['smtpuser'] = $this->dependencies['Runtimedata']->application->parameters->mailer_smtpuser;
             $this->dependencies['smtppass'] = $this->dependencies['Runtimedata']->application->parameters->mailer_smtppass;
             $this->dependencies['smtpsecure'] = $this->dependencies['Runtimedata']->application->parameters->mailer_smtpsecure;
             $this->dependencies['smtpport'] = $this->dependencies['Runtimedata']->application->parameters->mailer_smtpport;
             break;
         case 'sendmail':
             $this->dependencies['sendmail_path'] = $this->dependencies['Runtimedata']->application->parameters->mailer_send_mail;
             break;
         default:
             break;
     }
     $this->dependencies['to'] = $this->dependencies['Runtimedata']->application->parameters->mailer_only_deliver_to;
     $this->dependencies['from'] = $this->dependencies['Runtimedata']->application->parameters->mailer_mail_from;
     $this->dependencies['reply_to'] = $this->dependencies['Runtimedata']->application->parameters->mailer_mail_reply_to;
     $this->dependencies['email_adapter'] = 'phpMailer';
     //= $this->dependencies['Runtimedata']->application->parameters->email_adapter;
     $this->dependencies['mailer_disable_sending'] = $this->dependencies['Runtimedata']->application->parameters->mailer_disable_sending;
     $this->dependencies['mailer_only_deliver_to'] = '*****@*****.**';
     return $dependency_values;
 }
Пример #23
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies['Messages'] = array();
     return $this->dependencies;
 }
Пример #24
0
 /**
  * Logic contained within this method is invoked after Dependencies Instances are available
  *  and before the instantiateClass Method is invoked
  *
  * @param   array $dependency_values
  *
  * @return  array
  * @since   1.0.0
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->setConfigurationData();
     return $dependency_values;
 }
 /**
  * Constructor
  *
  * @param   $options
  *
  * @since   1.0.0
  */
 public function __construct(array $options = array())
 {
     $options['product_namespace'] = 'Molajo\\Resource\\Adapter\\Defaultxml';
     $options['product_name'] = basename(__DIR__);
     parent::__construct($options);
 }
Пример #26
0
 /**
  * Set Dependencies for Instantiation
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->dependencies['messages'] = $this->setMessages();
     return $this->dependencies;
 }
Пример #27
0
 /**
  * Set Dependencies for Instantiation
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->dependencies['Templates'] = $this->getTemplates();
     return $this;
 }
Пример #28
0
 /**
  * Set Dependencies for Instantiation
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->dependencies['field_path'] = $this->base_path . '/vendor/molajo/application/Source/Model/Fields/';
     return $this->dependencies;
 }
Пример #29
0
 /**
  * Constructor
  *
  * @param  $options
  *
  * @since  1.0
  */
 public function __construct(array $options = array())
 {
     $options['product_name'] = basename(__DIR__);
     $options['product_namespace'] = 'Molajo\\Render\\Driver';
     parent::__construct($options);
 }
Пример #30
0
 /**
  * Set Dependencies for Instantiation
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function onBeforeInstantiation(array $dependency_values = null)
 {
     parent::onBeforeInstantiation($dependency_values);
     $this->dependencies['extensions_filename'] = $this->base_path . '/Bootstrap/Files/Output/Extensions.json';
     return $this->dependencies;
 }