Skip to content

Commit 5e916df

Browse files
authored
Merge pull request #732 from Crown-Commercial-Service/development
Dev to UAT
2 parents 7c550bc + 1087472 commit 5e916df

File tree

21 files changed

+3485
-42
lines changed

21 files changed

+3485
-42
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ public/wp-content/themes/twentytwentyone/package-lock.json
4848

4949
**/.DS_Store
5050
public/wp-content/plugins/ccs-custom/library/user-activity-log.txt
51+
52+
public/wp-content/plugins/ccs-mdm/vendor
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/**
3+
* Plugin Name: CCS MDM Importer
4+
* Description: Imports required objects from MDM API into Wordpress
5+
* Author: Chee Ng
6+
* Text Domain: ccs-dmd-import
7+
* Version: 1.0
8+
*/
9+
10+
// Abort if this file is called directly.
11+
if ( ! defined( 'ABSPATH' ) ) exit;
12+
13+
// Load WP-CLI commands if running from WP-CLI.
14+
if ( defined('WP_CLI') && WP_CLI ) {
15+
require __DIR__ . '/includes/cli-commands.php';
16+
require __DIR__ . '/includes/SyncText.php';
17+
require __DIR__ . '/includes/dbManager.php';
18+
}
19+
20+
// Register activation and deactivation hooks
21+
register_activation_hook(__FILE__, array('PluginCore', 'activate'));
22+
register_deactivation_hook(__FILE__, array('PluginCore', 'deactivate'));
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "ccs/mdm",
3+
"authors": [
4+
{
5+
"name": "Chee Ng",
6+
"email": "chee.ng@crowncommercial.gov.uk"
7+
}
8+
],
9+
"require-dev": {
10+
"phpunit/phpunit": "^11.5",
11+
"mockery/mockery": "^1.6"
12+
}
13+
}

0 commit comments

Comments
 (0)