toggle to PSR-4 for ConLite

This commit is contained in:
o.pinke 2023-07-06 20:18:52 +02:00
parent 727cad0e1e
commit 35fe2dd066
7 changed files with 24 additions and 69 deletions

View file

@ -16,5 +16,10 @@
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.0",
"rector/rector": "^0.15"
},
"autoload": {
"psr-4": {
"ConLite\\": "conlite/classes"
}
}
}

View file

@ -0,0 +1,8 @@
<?php
namespace ConLite\Frontend\Navigation;
class FrontendNavigation
{
}

View file

@ -1,40 +0,0 @@
<?php
/**
* File:
* class.frontend.navigation.abstract.php
*
* Description:
* Abstract Class for Frontend Navigations
*
* @package Core
* @subpackage Frontend
* @version $Rev$
* @since 2.0
* @author Ortwin Pinke <o.pinke@conlite.org>
* @copyright (c) 2016, conlite.org
* @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version)
* @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version)
* @link http://www.conlite.org ConLite.org
*
* $Id$
*/
// security check
defined('CON_FRAMEWORK') or die('Illegal call');
class cFrontendNavigationAbstract {
/**
*
* @var DB_ConLite
*/
protected $_oDB;
public function __construct() {
;
}
protected function _getDB() {
}
}

View file

@ -1,27 +0,0 @@
<?php
/**
* File:
* class.frontend.navigation.php
*
* Description:
* Helper Class for Frontend Navigations
*
* @package Core
* @subpackage Frontend
* @version $Rev$
* @since 2.0
* @author Ortwin Pinke <o.pinke@conlite.org>
* @copyright (c) 2016, conlite.org
* @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version)
* @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version)
* @link http://www.conlite.org ConLite.org
*
* $Id$
*/
// security check
defined('CON_FRAMEWORK') or die('Illegal call');
class cFrontendNavigation extends cFrontendNavigationAbstract {
//put your code here
}

View file

@ -7,4 +7,5 @@ $baseDir = dirname($vendorDir);
return array(
'PHPMailer\\PHPMailer\\' => array($vendorDir . '/phpmailer/phpmailer/src'),
'ConLite\\' => array($baseDir . '/conlite/classes'),
);

View file

@ -11,6 +11,10 @@ class ComposerStaticInit030320213c853f2cfb8481e1bb7caf00
array (
'PHPMailer\\PHPMailer\\' => 20,
),
'C' =>
array (
'ConLite\\' => 8,
),
);
public static $prefixDirsPsr4 = array (
@ -18,6 +22,10 @@ class ComposerStaticInit030320213c853f2cfb8481e1bb7caf00
array (
0 => __DIR__ . '/..' . '/phpmailer/phpmailer/src',
),
'ConLite\\' =>
array (
0 => __DIR__ . '/../..' . '/conlite/classes',
),
);
public static $classMap = array (

View file

@ -5,7 +5,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '46c1c1c3c36cf82a9e748d61bca3439d0d14e7b9',
'reference' => '727cad0e1e2ad00ac92dac6aa02e5ea0b4ca1dfb',
'name' => 'org.conlite/conlite',
'dev' => false,
),
@ -16,7 +16,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '46c1c1c3c36cf82a9e748d61bca3439d0d14e7b9',
'reference' => '727cad0e1e2ad00ac92dac6aa02e5ea0b4ca1dfb',
'dev_requirement' => false,
),
'phpmailer/phpmailer' => array(