Parent5446 has submitted this change and it was merged.

Change subject: Initial extension code.
......................................................................


Initial extension code.

Added AWS SDK as a dependency and added
basic extension structure.

Change-Id: Ifa77b52ec3359ade0167b69fff8e5231994776bc
---
M .gitignore
A AWS.i18n.php
A AWS.php
A composer.json
A composer.lock
5 files changed, 358 insertions(+), 0 deletions(-)

Approvals:
  Parent5446: Verified; Looks good to me, approved



diff --git a/.gitignore b/.gitignore
index 98b092a..f4d9675 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 *~
 *.kate-swp
 .*.swp
+vendor/
diff --git a/AWS.i18n.php b/AWS.i18n.php
new file mode 100644
index 0000000..211003d
--- /dev/null
+++ b/AWS.i18n.php
@@ -0,0 +1,18 @@
+<?php
+
+/**
+ * Internationalization and localization for Extension:AWS
+ *
+ * @file
+ * @ingroup Extensions
+ */
+
+$messages = array();
+
+$messages['en'] = array(
+       'aws-desc' => 'This plugin provides classes for using Amazon Web 
Services with MediaWiki.'
+);
+
+$messages['qqq'] = array(
+       'aws-desc' => '{{desc}}'
+);
diff --git a/AWS.php b/AWS.php
new file mode 100644
index 0000000..6ab567e
--- /dev/null
+++ b/AWS.php
@@ -0,0 +1,48 @@
+<?php
+
+/**
+ * Implements the AWS extension for MediaWiki.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ */
+
+$wgExtensionCredits['other'][] = array(
+       'path'           => __FILE__,
+       'name'           => 'AWS',
+       'url'            => 'https://www.mediawiki.org/wiki/Extension:AWS',
+       'version'        => '0.5',
+       'author'         => 'Tyler Romeo',
+       'descriptionmsg' => 'aws-desc'
+);
+
+/**
+ * Credentials to use to connect to AWS
+ */
+$wgAWSCredentials = array(
+       'key' => false,
+       'secret' => false
+);
+
+/**
+ * Region of AWS to connect to
+ */
+$wgAWSRegion = false;
+
+$wgExtensionMessagesFiles['AWS'] = __DIR__ . '/AWS.i18n.php';
+
+require_once( __DIR__ . '/vendor/autoload.php' );
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..6fb86da
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,8 @@
+{
+       "name": "mediawiki/extensions/AWS",
+       "type": "mediawiki-extension",
+       "require": {
+               "aws/aws-sdk-php": ">=2.1.1",
+               "composer/installers": "~1.0"
+       }
+}
diff --git a/composer.lock b/composer.lock
new file mode 100644
index 0000000..8dce841
--- /dev/null
+++ b/composer.lock
@@ -0,0 +1,283 @@
+{
+    "hash": "558822d599154c989db6b8b4a599eaa4",
+    "packages": [
+        {
+            "name": "aws/aws-sdk-php",
+            "version": "2.1.2",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/aws/aws-sdk-php.git";,
+                "reference": "2.1.2"
+            },
+            "dist": {
+                "type": "zip",
+                "url": 
"https://api.github.com/repos/aws/aws-sdk-php/zipball/2.1.2";,
+                "reference": "2.1.2",
+                "shasum": ""
+            },
+            "require": {
+                "guzzle/guzzle": ">=3.2,<3.3",
+                "php": ">=5.3.3"
+            },
+            "require-dev": {
+                "doctrine/common": "2.3.*",
+                "ext-apc": "*",
+                "monolog/monolog": "1.2.*",
+                "phpunit/phpunit": "3.7.*",
+                "symfony/class-loader": "2.*"
+            },
+            "time": "2013-02-19 01:30:36",
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "2.1.x-dev"
+                }
+            },
+            "autoload": {
+                "psr-0": {
+                    "Aws": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/";,
+            "license": [
+                "Apache-2.0"
+            ],
+            "authors": [
+                {
+                    "name": "Amazon Web Services",
+                    "homepage": "http://aws.amazon.com";
+                }
+            ],
+            "description": "AWS SDK for PHP",
+            "homepage": "http://aws.amazon.com/sdkforphp2";,
+            "keywords": [
+                "amazon",
+                "aws",
+                "dynamodb",
+                "ec2",
+                "s3",
+                "sdk"
+            ]
+        },
+        {
+            "name": "composer/installers",
+            "version": "v1.0.2",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/composer/installers.git";,
+                "reference": "v1.0.2"
+            },
+            "dist": {
+                "type": "zip",
+                "url": 
"https://api.github.com/repos/composer/installers/zipball/v1.0.2";,
+                "reference": "v1.0.2",
+                "shasum": ""
+            },
+            "replace": {
+                "shama/baton": "*"
+            },
+            "require-dev": {
+                "composer/composer": "1.0.*@dev",
+                "phpunit/phpunit": "3.7.*"
+            },
+            "time": "2013-02-18 00:51:06",
+            "type": "composer-installer",
+            "extra": {
+                "class": "Composer\\Installers\\Installer",
+                "branch-alias": {
+                    "dev-master": "1.0-dev"
+                }
+            },
+            "autoload": {
+                "psr-0": {
+                    "Composer\\Installers\\": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/";,
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Kyle Robinson Young",
+                    "email": "[email protected]",
+                    "homepage": "http://dontkry.com";,
+                    "role": "Developer"
+                }
+            ],
+            "description": "A multi-framework Composer library installer",
+            "homepage": "http://composer.github.com/installers/";,
+            "keywords": [
+                "TYPO3 Flow",
+                "TYPO3 Neos",
+                "agl",
+                "cakephp",
+                "codeigniter",
+                "drupal",
+                "fuelphp",
+                "installer",
+                "joomla",
+                "kohana",
+                "laravel",
+                "li3",
+                "lithium",
+                "mako",
+                "phpbb",
+                "ppi",
+                "silverstripe",
+                "symfony",
+                "wordpress",
+                "zend"
+            ]
+        },
+        {
+            "name": "guzzle/guzzle",
+            "version": "v3.2.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/guzzle/guzzle.git";,
+                "reference": "v3.2.0"
+            },
+            "dist": {
+                "type": "zip",
+                "url": 
"https://api.github.com/repos/guzzle/guzzle/zipball/v3.2.0";,
+                "reference": "v3.2.0",
+                "shasum": ""
+            },
+            "require": {
+                "ext-curl": "*",
+                "php": ">=5.3.2",
+                "symfony/event-dispatcher": ">=2.1"
+            },
+            "replace": {
+                "guzzle/batch": "self.version",
+                "guzzle/cache": "self.version",
+                "guzzle/common": "self.version",
+                "guzzle/http": "self.version",
+                "guzzle/inflection": "self.version",
+                "guzzle/iterator": "self.version",
+                "guzzle/log": "self.version",
+                "guzzle/parser": "self.version",
+                "guzzle/plugin": "self.version",
+                "guzzle/plugin-async": "self.version",
+                "guzzle/plugin-backoff": "self.version",
+                "guzzle/plugin-cache": "self.version",
+                "guzzle/plugin-cookie": "self.version",
+                "guzzle/plugin-curlauth": "self.version",
+                "guzzle/plugin-history": "self.version",
+                "guzzle/plugin-log": "self.version",
+                "guzzle/plugin-md5": "self.version",
+                "guzzle/plugin-mock": "self.version",
+                "guzzle/plugin-oauth": "self.version",
+                "guzzle/service": "self.version",
+                "guzzle/stream": "self.version"
+            },
+            "require-dev": {
+                "doctrine/common": "*",
+                "monolog/monolog": "1.*",
+                "phpunit/phpunit": "3.7.*",
+                "symfony/class-loader": "*",
+                "zend/zend-cache1": "1.12",
+                "zend/zend-log1": "1.12",
+                "zendframework/zend-cache": "2.0.*",
+                "zendframework/zend-log": "2.0.*"
+            },
+            "time": "2013-02-15 01:33:10",
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "3.1-dev"
+                }
+            },
+            "autoload": {
+                "psr-0": {
+                    "Guzzle\\Tests": "tests/",
+                    "Guzzle": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/";,
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Michael Dowling",
+                    "email": "[email protected]",
+                    "homepage": "https://github.com/mtdowling";
+                },
+                {
+                    "name": "Guzzle Community",
+                    "homepage": "https://github.com/guzzle/guzzle/contributors";
+                }
+            ],
+            "description": "Guzzle is a PHP HTTP client library and framework 
for building RESTful web service clients",
+            "homepage": "http://guzzlephp.org/";,
+            "keywords": [
+                "client",
+                "curl",
+                "framework",
+                "http",
+                "http client",
+                "rest",
+                "web service"
+            ]
+        },
+        {
+            "name": "symfony/event-dispatcher",
+            "version": "v2.1.7",
+            "target-dir": "Symfony/Component/EventDispatcher",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/symfony/EventDispatcher";,
+                "reference": "v2.1.7"
+            },
+            "dist": {
+                "type": "zip",
+                "url": 
"https://github.com/symfony/EventDispatcher/archive/v2.1.7.zip";,
+                "reference": "v2.1.7",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=5.3.3"
+            },
+            "require-dev": {
+                "symfony/dependency-injection": "2.1.*"
+            },
+            "suggest": {
+                "symfony/dependency-injection": "2.1.*",
+                "symfony/http-kernel": "2.1.*"
+            },
+            "time": "2013-01-11 00:31:43",
+            "type": "library",
+            "autoload": {
+                "psr-0": {
+                    "Symfony\\Component\\EventDispatcher": ""
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/";,
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Fabien Potencier",
+                    "email": "[email protected]"
+                },
+                {
+                    "name": "Symfony Community",
+                    "homepage": "http://symfony.com/contributors";
+                }
+            ],
+            "description": "Symfony EventDispatcher Component",
+            "homepage": "http://symfony.com";
+        }
+    ],
+    "packages-dev": null,
+    "aliases": [
+
+    ],
+    "minimum-stability": "stable",
+    "stability-flags": [
+
+    ]
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/51634
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifa77b52ec3359ade0167b69fff8e5231994776bc
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/AWS
Gerrit-Branch: master
Gerrit-Owner: Parent5446 <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to