JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • Container

Interfaces

  • ContainerAwareInterface
  • ServiceProviderInterface

Traits

  • ContainerAwareTrait
 1 <?php
 2 /**
 3  * Part of the Joomla Framework DI Package
 4  *
 5  * @copyright  Copyright (C) 2013 - 2016 Open Source Matters, Inc. All rights reserved.
 6  * @license    GNU General Public License version 2 or later; see LICENSE
 7  */
 8 
 9 namespace Joomla\DI;
10 
11 /**
12  * Defines the interface for a Container Aware class.
13  *
14  * @since  1.0
15  */
16 interface ContainerAwareInterface
17 {
18     /**
19      * Get the DI container.
20      *
21      * @return  Container
22      *
23      * @since   1.0
24      *
25      * @throws  \UnexpectedValueException May be thrown if the container has not been set.
26      */
27     public function getContainer();
28 
29     /**
30      * Set the DI container.
31      *
32      * @param   Container  $container  The DI container.
33      *
34      * @return  mixed
35      *
36      * @since   1.0
37      */
38     public function setContainer(Container $container);
39 }
40 
Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.