mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Add canonical package module
This commit deprecates non-canonical package module "dependency.d".
This commit is contained in:
parent
7effc264ef
commit
71ac539f2a
|
@ -1,5 +1,9 @@
|
||||||
Poodinis Changelog
|
Poodinis Changelog
|
||||||
==================
|
==================
|
||||||
|
**Next Release**
|
||||||
|
* ADD canonical package module "package.d". Use "import poodinis;" to import the project.
|
||||||
|
* DEPRECATE module "dependency.d". Please use the canonical package module. See previous point.
|
||||||
|
|
||||||
**Version 2.1.0**
|
**Version 2.1.0**
|
||||||
* ADD option for registering a class by concrete type when registering that class by supertype.
|
* ADD option for registering a class by concrete type when registering that class by supertype.
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ See the Poodinis [DUB project page] for instructions on how to include Poodinis
|
||||||
###Quickstart
|
###Quickstart
|
||||||
The following example shows the typical usage of Poodinis:
|
The following example shows the typical usage of Poodinis:
|
||||||
```d
|
```d
|
||||||
import poodinis.dependency;
|
import poodinis;
|
||||||
|
|
||||||
interface Database{};
|
interface Database{};
|
||||||
class RelationalDatabase : Database {}
|
class RelationalDatabase : Database {}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import poodinis.dependency;
|
import poodinis;
|
||||||
|
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import poodinis.dependency;
|
import poodinis;
|
||||||
|
|
||||||
interface Database{};
|
interface Database{};
|
||||||
class RelationalDatabase : Database {}
|
class RelationalDatabase : Database {}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
/**
|
/**
|
||||||
* Main module for typical inclusion into client applications.
|
* Main module for typical inclusion into client applications.
|
||||||
*
|
*
|
||||||
* This module publicly imports all Poodinis modules.
|
* This module publicly imports all Poodinis modules.
|
||||||
*
|
*
|
||||||
* Part of the Poodinis Dependency Injection framework.
|
* Part of the Poodinis Dependency Injection framework.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
* Mike Bierlee, m.bierlee@lostmoment.com
|
* Mike Bierlee, m.bierlee@lostmoment.com
|
||||||
* Copyright: 2014-2015 Mike Bierlee
|
* Copyright: 2014-2015 Mike Bierlee
|
||||||
* License:
|
* License:
|
||||||
* This software is licensed under the terms of the MIT license.
|
* This software is licensed under the terms of the MIT license.
|
||||||
* The full terms of the license can be found in the LICENSE file.
|
* The full terms of the license can be found in the LICENSE file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module poodinis.dependency;
|
module poodinis.dependency;
|
||||||
|
|
||||||
public import poodinis.autowire;
|
pragma(msg, "Module 'dependency' is deprecated. Please use the canonical package module. To do this, simply 'import poodinis;'");
|
||||||
public import poodinis.container;
|
|
||||||
public import poodinis.registration;
|
public import poodinis.autowire;
|
||||||
|
public import poodinis.container;
|
||||||
|
public import poodinis.registration;
|
||||||
|
|
16
source/poodinis/package.d
Normal file
16
source/poodinis/package.d
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/**
|
||||||
|
* Package module for the Poodinis Dependency Injection framework.
|
||||||
|
*
|
||||||
|
* Authors:
|
||||||
|
* Mike Bierlee, m.bierlee@lostmoment.com
|
||||||
|
* Copyright: 2014-2015 Mike Bierlee
|
||||||
|
* License:
|
||||||
|
* This software is licensed under the terms of the MIT license.
|
||||||
|
* The full terms of the license can be found in the LICENSE file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
module poodinis;
|
||||||
|
|
||||||
|
public import poodinis.autowire;
|
||||||
|
public import poodinis.container;
|
||||||
|
public import poodinis.registration;
|
Loading…
Reference in a new issue