PHP Classes

File: src/start.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Jaxon Sentry   src/start.php   Download  
File: src/start.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Jaxon Sentry
Common classes for Jaxon based Ajax applications
Author: By
Last change:
Date: 3 years ago
Size: 599 bytes
 

Contents

Class file image Download
<?php

/**
 * start.php -
 *
 * This file is automatically loaded by the Composer autoloader
 *
 * The Sentry instance is registered in the DI container here.
 *
 * @package jaxon-sentry
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2018 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-sentry
 */

/*
 * Register the Sentry instance in the DI container
 */
\Jaxon\DI\Container::getInstance()->setSentry(function ($c) {
    return new \
Jaxon\Sentry\Sentry();
});