S2Container.PHP-2.0 Document


Table of Contents

1. Installation
1.1. Requirement
1.2. Installation with PEAR Package
1.3. Installation with Full Package
1.4. Installation with Phar Package
2. Quick Start
2.1. Setup
2.2. Getting a component
2.3. Registration of the component
2.4. Dependency Injection
2.5. Auto Aspect
2.6. Aspect Anotation
2.7. Setup with DICON file
3. S2Container.PHP Reference
3.1. S2Container Reference
3.1.1. Generation of S2Container
3.1.2. Getting a component
3.1.3. DI by automatic binding
3.1.4. DI by manual setup
3.1.5. Binding type setup
3.1.6. Instance type setup
3.1.7. ConstructClosure
3.2. S2ApplicationContext Reference
3.2.1. Import of Component
3.2.2. Generation of S2Container
3.2.3. Selection of a component
3.2.4. Manual Component Registration
3.2.5. Auto Aspect
3.2.6. Annotation
3.2.7. Management of Singleton S2Container instance
3.2.8. Initialization of S2ApplicationContext
3.3. S2ContainerFactory Reference
3.3.1. Creation of a DICON file
3.3.2. Generation of S2Container
3.4. DICON File Tag Reference
3.4.1. DOCTYPE (required)
3.4.2. components tag (required)
3.4.3. include tag
3.4.4. component tag
3.4.5. arg tag
3.4.6. property tag
3.4.7. initMethod tag
3.4.8. aspect tag
3.4.9. meta tag
3.4.10. description tag
3.5. S2Container configuration file
4. S2AOP.PHP Reference
4.1. Summary of S2AOP
4.1.1. Concept of AOP
4.2. Notes on S2AOP
4.3. Aspect using S2AopFactory
4.4. Aspect using S2Container
4.4.1. Using S2ApplicationContext
4.4.2. Using S2ContainerFactory
4.5. Interceptors prepared in S2AOP
4.5.1. TraceInterceptor
4.5.2. MockInterceptor
4.5.3. InterceptorChain
4.5.4. Implementing Interceptor
4.6. MethodInvocation API Reference
4.7. S2AOP Configuration file
5. MISC
5.1. Functional comparison of S2Container-1.2 and S2Container-2.0
5.2. Using S2Container in component
5.3. Log setup of S2Container
5.3.1. S2Logger
5.3.2. SimpleLogger
5.4. Annotation API Reference
5.5. ClassLoader API Reference
5.6. Database access using PDO
5.6.1. Using a class which inherits PDO
5.6.2. PDO setup by DICON
5.7. Database access using PdoInterceptor
5.7.1. About Example
5.7.2. Summary of PdoInterceptor
5.7.3. Aspect to Class
5.7.4. Setup Bind value By Method result
5.7.5. Aspect to Interface
5.7.6. Setup Bind value by Method argument
5.7.7. Using @DTO Annotation
5.7.8. Using PDO in Dao
5.7.9. Paging by Paginate class
5.8. StrictInterceptor
5.8.1. About Example
5.8.2. Summary of StrictInterceptor
5.8.3. Aspect StrictInterceptor
5.9. Using S2Container with Zend_Controller
5.9.1. Environment
5.9.2. Creation of the project
5.9.3. Setup of S2Container
5.9.4. Using S2Container in the Action method
5.9.5. UnitTest of The Component
5.10. Using S2Erd with ERD design tools
5.10.1. Environment
5.10.2. Creation of a sample project
5.10.3. Installation of S2Erd
5.10.4. Setup of S2Erd
5.10.5. Autoload Setting
5.10.6. Zend_Tool command
5.10.7. UnitTest of Table Model
5.10.8. Using Table Model in Service class
5.11. Using S2Container with Symfony
5.11.1. Startup of Symfony
5.11.2. S2Container Setup
5.11.3. Creation of action
5.11.4. Using Mock

List of Tables

3.1. Binding Type
3.2. Instance Type
5.1. Functional comparison table of S2Container-1.2 and S2Container-2.0


© Copyright The Seasar Foundation and the others 2005-2010, all rights reserved.