Permalink
Browse files

Updating license from LGPL to MIT

  • Loading branch information...
1 parent c46424d commit 449211c93432c60c8b17a4433109253a8434df06 @Ocramius Ocramius committed May 31, 2012
View
14 LICENSE
@@ -0,0 +1,14 @@
+Copyright (c) 2006-2012 Doctrine Project
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
+to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -13,7 +13,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
+ * and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
@@ -29,7 +29,7 @@
/**
* Doctrine Module provider for Mongo DB ODM.
*
- * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @license MIT
* @link http://www.doctrine-project.org
* @since 0.1.0
* @author Kyle Spraggs <theman@spiffyjr.me>
View
@@ -10,6 +10,7 @@
"zf2"
],
"homepage": "http://www.doctrine-project.org/",
+ "license": "MIT",
"authors": [
{
"name": "Kyle Spraggs",
View
@@ -1,4 +1,22 @@
<?php
+/*
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * and is licensed under the MIT license. For more information, see
+ * <http://www.doctrine-project.org>.
+ */
+
return array(
'doctrine_mongoodm_module' => array(
@@ -23,7 +41,7 @@
'conn' => array('type' => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Connection', 'required' => true)
),
),
- ),
+ ),
),
),
'instance' => array(
@@ -95,8 +113,8 @@
'parameters' => array(
'objectManager' => 'mongo_dm',
),
- ),
-
+ ),
+
// Commands to be attached to CLI tools
'doctrine_cli' => array(
'injections' => array(
@@ -13,7 +13,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
+ * and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
@@ -28,17 +28,16 @@
* Wrapper for MongoDB configuration that helps setup configuration without relying
* entirely on Di.
*
- * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @link www.doctrine-project.org
- * @since 1.0
- * @version $Revision$
+ * @license MIT
+ * @link http://www.doctrine-project.org
+ * @since 0.1.0
* @author Kyle Spraggs <theman@spiffyjr.me>
*/
class Configuration extends Instance
{
/**
- * Definition for configuration options.
- *
+ * Definition for configuration options.
+ *
* @var array
*/
protected $definition = array(
@@ -54,25 +53,25 @@ class Configuration extends Instance
'default_db' => 'string'
)
);
-
+
/**
* @var Doctrine\ORM\Mapping\Driver\Driver
*/
protected $metadataDriver;
-
+
/**
* @var Doctrine\Common\Cache\Cache
*/
protected $metadataCache;
-
+
/**
* @var Doctrine\DBAL\Logging\SQLLogger
*/
protected $logger;
-
+
/**
* Constructor.
- *
+ *
* @param array $opts
* @param Driver $metadataDriver
* @param Cache $metadataCache
@@ -83,14 +82,14 @@ public function __construct(array $opts, $metadataDriver, Cache $metadataCache,
if ($metadataDriver instanceof DriverChain) {
$metadataDriver = $metadataDriver->getInstance();
}
-
+
$this->metadataDriver = $metadataDriver;
$this->metadataCache = $metadataCache;
$this->logger = $logger;
-
+
parent::__construct($opts);
}
-
+
protected function loadInstance()
{
$opts = $this->opts;
@@ -100,24 +99,24 @@ protected function loadInstance()
$config->setAutoGenerateProxyClasses($opts['auto_generate_proxies']);
$config->setProxyDir($opts['proxy_dir']);
$config->setProxyNamespace($opts['proxy_namespace']);
-
+
// hydrators
$config->setAutoGenerateHydratorClasses($opts['auto_generate_hydrators']);
$config->setHydratorDir($opts['hydrator_dir']);
$config->setHydratorNamespace($opts['hydrator_namespace']);
-
+
// default db
$config->setDefaultDB($opts['default_db']);
-
+
// caching
$config->setMetadataCacheImpl($this->metadataCache);
// logger
$config->setLoggerCallable($this->logger);
-
+
// finally, the driver
$config->setMetadataDriverImpl($this->metadataDriver);
-
+
$this->instance = $config;
}
}
@@ -13,7 +13,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
+ * and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
@@ -27,10 +27,9 @@
* Wrapper for MongoDB connection that helps setup configuration without relying
* entirely on Di.
*
- * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @link www.doctrine-project.org
- * @since 1.0
- * @version $Revision$
+ * @license MIT
+ * @link http://www.doctrine-project.org
+ * @since 0.1.0
* @author Kyle Spraggs <theman@spiffyjr.me>
*/
class Connection extends Instance
@@ -39,25 +38,25 @@ class Connection extends Instance
* @var Doctrine\ORM\Configuration
*/
protected $config;
-
+
/**
* @var Doctrine\Common\EventManager
*/
protected $evm;
-
+
/**
* @var null|Mongo
*/
protected $server;
-
+
/**
* @var array
*/
protected $options = array();
-
+
/**
* Constructor
- *
+ *
* @param null|Mongo $server
* @param array $options
* @param Configuration $config
@@ -73,10 +72,10 @@ public function __construct(
$this->options = $options ? $options : array();
$this->config = $config ? $config->getInstance() : null;
$this->evm = $evm ? $evm->getInstance() : null;
-
+
parent::__construct(array());
}
-
+
protected function loadInstance()
{
$this->instance = new MongoConnection(
@@ -13,7 +13,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
+ * and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
@@ -26,10 +26,9 @@
* Wrapper for MongoDB driver chain that helps setup configuration without relying
* entirely on Di.
*
- * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @link www.doctrine-project.org
- * @since 1.0
- * @version $Revision$
+ * @license MIT
+ * @link http://www.doctrine-project.org
+ * @since 0.1.0
* @author Kyle Spraggs <theman@spiffyjr.me>
*/
class DriverChain extends CommonDriverChain
@@ -13,7 +13,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
- * and is licensed under the LGPL. For more information, see
+ * and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
@@ -26,10 +26,9 @@
/**
* Doctrine MongoDB document manager factory.
*
- * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
- * @link www.doctrine-project.org
- * @since 1.0
- * @version $Revision$
+ * @license MIT
+ * @link http://www.doctrine-project.org
+ * @since 0.1.0
* @author Kyle Spraggs <theman@spiffyjr.me>
*/
class DocumentManager

0 comments on commit 449211c

Please sign in to comment.