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
|
||||
==================
|
||||
**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**
|
||||
* 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
|
||||
The following example shows the typical usage of Poodinis:
|
||||
```d
|
||||
import poodinis.dependency;
|
||||
import poodinis;
|
||||
|
||||
interface Database{};
|
||||
class RelationalDatabase : Database {}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import poodinis.dependency;
|
||||
import poodinis;
|
||||
|
||||
import std.stdio;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import poodinis.dependency;
|
||||
import poodinis;
|
||||
|
||||
interface Database{};
|
||||
class RelationalDatabase : Database {}
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
/**
|
||||
* Main module for typical inclusion into client applications.
|
||||
*
|
||||
* This module publicly imports all Poodinis modules.
|
||||
*
|
||||
* Part of 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.dependency;
|
||||
|
||||
public import poodinis.autowire;
|
||||
public import poodinis.container;
|
||||
public import poodinis.registration;
|
||||
/**
|
||||
* Main module for typical inclusion into client applications.
|
||||
*
|
||||
* This module publicly imports all Poodinis modules.
|
||||
*
|
||||
* Part of 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.dependency;
|
||||
|
||||
pragma(msg, "Module 'dependency' is deprecated. Please use the canonical package module. To do this, simply 'import poodinis;'");
|
||||
|
||||
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