PHP Classes
elePHPant
Icontem

File: src/Traits/Sentry.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Traits/Sentry.php  >  Download  
File: src/Traits/Sentry.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change: Merge pull request #39 from jaxon-php/v2.2.x

Merge from v2.2.5
Date: 3 months ago
Size: 1,173 bytes
 

 

Contents

Class file image Download
<?php

/**
 * Sentry.php - Upload Trait
 *
 * The Jaxon class uses a modular plug-in system to facilitate the processing
 * of special Ajax requests made by a PHP page.
 * It generates Javascript that the page must include in order to make requests.
 * It handles the output of response commands (see <Jaxon\Response\Response>).
 * Many flags and settings can be adjusted to effect the behavior of the Jaxon class
 * as well as the client-side javascript.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2017 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\Traits;

use
Jaxon\DI\Container;

trait
Sentry
{
   
/**
     * Get the Sentry instance
     *
     * @return \Jaxon\Sentry\Sentry
     */
   
public function sentry()
    {
        return
Container::getInstance()->getSentry();
    }

   
/**
     * Get the Armada instance
     *
     * @return \Jaxon\Sentry\Traits\Armada
     */
   
public function armada()
    {
        return
Container::getInstance()->getArmada();
    }
}