phalcon/cphalcon — pull request #2034 by sjinks (2014-02-12 15:09:48+00:00)
Title: Clean up Phalcon\DiInterface

!!! The below affects only `Phalcon\DiInterface`, no changes were made to `Phalcon\DI` itself.

* Remove `setShared()` method because it is a shorthand for `set($name, $definition, true)`;
* Remove `attempt()` method because it is a shorthand for `has()` + `set()`
* Rename `setRaw()` to `setService()` because `getRaw()` is actually `getService()` + `$service->getDefinition()`
* Remove `getRaw()` because it is `getService()` + `$service->getDefinition()`
* Modify `setService($name, $raw_definition)` to `setService($raw_definition)` because service name can be retrieved from the definition.

This results in

```php
interface DiInterface
{
public function set($name, $definiton, $shared = null);
public function remove($name);
public function get($name, $parameters = null);
public function getShared($name, $parameters = null);
public function getService($name);
public function setService($raw_definition);
public function has($name);
public function wasFreshInstance();
public function getServices();
public static function setDefault($dependency_injector);
public static function getDefault();
public static function reset();
}
```