Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into acceptHandling
Browse files Browse the repository at this point in the history
Conflicts:
	library/Zend/Mvc/Controller/RestfulController.php
  • Loading branch information
Show file tree
Hide file tree
Showing 100 changed files with 1,566 additions and 428 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

14 changes: 0 additions & 14 deletions .travis/run-tests.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .travis/skipped-components

This file was deleted.

61 changes: 0 additions & 61 deletions .travis/tested-components

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zendframework/zend-di",
"description": "Zend\\Di component",
"description": " ",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
Expand All @@ -9,11 +9,11 @@
"homepage": "https://github.com/zendframework/zend-di",
"autoload": {
"psr-4": {
"Zend\\Di\\": "src/"
"Zend\\Di": "src/"
}
},
"require": {
"php": ">=5.3.23",
"php": ">=5.3.3",
"zendframework/zend-code": "self.version",
"zendframework/zend-stdlib": "self.version"
},
Expand Down
27 changes: 21 additions & 6 deletions src/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Di
*/

namespace Zend\Di;

Expand All @@ -7,15 +15,16 @@

class Configuration
{
protected $data = array();

/**
* @var Zend\Di\DependencyInjector
* @var array
*/
protected $di = null;

protected $data = array();
/**
* Constructor
*
* @param array|Traversable $options
* @throws Exception\InvalidArgumentException
*/
public function __construct($options)
{
Expand All @@ -30,7 +39,13 @@ public function __construct($options)
}
$this->data = $options;
}


/**
* Configure
*
* @param Di $di
* @return void
*/
public function configure(Di $di)
{
if (isset($this->data['definition'])) {
Expand Down
8 changes: 8 additions & 0 deletions src/Definition/Annotation/Inject.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Di
*/

namespace Zend\Di\Definition\Annotation;

Expand Down
8 changes: 8 additions & 0 deletions src/Definition/Annotation/Instantiator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Di
*/

namespace Zend\Di\Definition\Annotation;

Expand Down
8 changes: 8 additions & 0 deletions src/Definition/ArrayDefinition.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Di
*/

namespace Zend\Di\Definition;

Expand Down
8 changes: 8 additions & 0 deletions src/Definition/Builder/InjectionMethod.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Di
*/

namespace Zend\Di\Definition\Builder;

Expand Down
40 changes: 35 additions & 5 deletions src/Definition/Builder/PhpClass.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Di
*/

namespace Zend\Di\Definition\Builder;

Expand All @@ -9,13 +17,24 @@ class PhpClass
protected $instantiator = '__construct';
protected $injectionMethods = array();
protected $superTypes = array();


/**
* Set name
*
* @param string $name
* @return PhpClass
*/
public function setName($name)
{
$this->name = $name;
return $this;
}


/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
Expand All @@ -31,18 +50,29 @@ public function getInstantiator()
{
return $this->instantiator;
}

public function addSuperType($superType)
{
$this->superTypes[] = $superType;
return $this;
}


/**
* Get super types
*
* @return array
*/
public function getSuperTypes()
{
return $this->superTypes;
}


/**
* Add injection method
*
* @param InjectionMethod $injectionMethod
* @return PhpClass
*/
public function addInjectionMethod(InjectionMethod $injectionMethod)
{
$this->injectionMethods[] = $injectionMethod;
Expand Down
Loading

0 comments on commit 7c41732

Please sign in to comment.