Replace INBCM with TMDC or dwc
This commit is contained in:
parent
a4d8bc0160
commit
fc7dce7f97
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"INBCM\\Preset\\Tainacan\\": "src/"
|
||||
"dwc\\Preset\\Tainacan\\": "src/"
|
||||
}
|
||||
}
|
||||
}
|
2
main.php
2
main.php
|
@ -5,7 +5,7 @@ require_once __DIR__.'/app/config.php';
|
|||
require_once __DIR__.'/vendor/autoload.php';
|
||||
|
||||
|
||||
use \INBCM\Preset\Tainacan\Classes\Controller;
|
||||
use \dwc\Preset\Tainacan\Classes\Controller;
|
||||
|
||||
echo "start main process!";
|
||||
$preset = new Controller\Preset();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace INBCM\Preset\Tainacan\Classes\Controller;
|
||||
namespace DWC\Preset\Tainacan\Classes\Controller;
|
||||
|
||||
class Preset {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace INBCM\Preset\Tainacan\Classes\Entities;
|
||||
namespace DWC\Preset\Tainacan\Classes\Entities;
|
||||
|
||||
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace INBCM\Preset\Tainacan\Classes\Entities;
|
||||
namespace DWC\Preset\Tainacan\Classes\Entities;
|
||||
|
||||
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
//brasillian states, brasilion cities, get the city metadata file cidades.json and then estados.json
|
||||
add_action( 'init', function() {
|
||||
global $cidades_brasileiras, $estados_brasileiros;
|
||||
$cidades = file_get_contents( plugin_dir_url(__FILE__) . 'metadata_type/cidades.json' );
|
|
@ -21,8 +21,8 @@ class TainacanINBCMBootstrapt {
|
|||
}
|
||||
|
||||
function registerExposerMapper($exposers) {
|
||||
$exposers->register_mapper('INBCM\Preset\Tainacan\Classes\Mapper\MapperDWC');
|
||||
$exposers->register_mapper('dwc\Preset\Tainacan\Classes\Mapper\MapperDWC');
|
||||
}
|
||||
}
|
||||
|
||||
$tainacanMapperBootstrapt = new \INBCM\Preset\Tainacan\TainacanDWCBootstrapt();
|
||||
$tainacanMapperBootstrapt = new \dwc\Preset\Tainacan\TainacanDWCBootstrapt();
|
||||
|
|
Loading…
Reference in New Issue