| Server IP : 54.36.91.62 / Your IP : 216.73.216.86 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nimes/libraries/CBLib/CBLib/Cms/ |
Upload File : |
<?php
/**
* CBLib, Community Builder Library(TM)
* @version $Id: 09.06.13 01:23 $
* @package ${NAMESPACE}
* @copyright (C) 2004-2023 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/
namespace CBLib\Cms;
use CBLib\Application\ApplicationContainerInterface;
defined('CBLIB') or die();
/**
* CBLib\Cms Class implementation
*
*/
abstract class Cms
{
/**
* Returns the Cms object corresponding to the CMS running.
*
* @throws \LogicException
*
* @return CmsInterface|callable
*/
public static function getGetCmsFunction( ) {
return function ( ApplicationContainerInterface $di )
{
if ( ! defined( 'JVERSION' ) ) {
throw new \LogicException( 'Unknown CMS', 500 );
}
if ( version_compare( JVERSION, '5.0', 'ge' ) ) {
return new Joomla\Joomla5( $di );
}
if ( version_compare( JVERSION, '4.0-beta2', 'ge' ) ) {
return new Joomla\Joomla4( $di );
}
if ( version_compare( JVERSION, '3.0', 'ge' ) ) {
return new Joomla\Joomla3( $di );
}
throw new \LogicException( 'Unsupported Joomla version', 500 );
};
}
}