Index
A
- ApcuCache — Class in namespace Pouch\Cache
- AliasTrait — Class in namespace Pouch\Helpers
- HookManager::addBeforeGet() — Method in class HookManager
- HookManager::addAfterGet() — Method in class HookManager
- HookManager::addBeforeSet() — Method in class HookManager
- HookManager::addAfterSet() — Method in class HookManager
- HookManager::addBeforeEachGet() — Method in class HookManager
- HookManager::addAfterEachGet() — Method in class HookManager
- HookManager::addBeforeEachSet() — Method in class HookManager
- HookManager::addAfterEachSet() — Method in class HookManager
- Pouch::alias() — Method in class Pouch
- Create an alias key for an existing key.
B
- ClassTree::bootstrap() — Method in class ClassTree
- Pouch::bootstrap() — Method in class Pouch
- Bootstrap pouch.
- Pouch::bind() — Method in class Pouch
- Bind a new element to the replaceables.
C
- ApcuCache::clear() — Method in class ApcuCache
- Wipes clean the entire cache's keys.
- AliasTrait::contains() — Method in class AliasTrait
- Alias for has.
- CacheTrait — Class in namespace Pouch\Helpers
- $CacheTrait#cacheStoreKey — Property in class CacheTrait
- Key of the singleton holding the cache handler.
- CacheTrait::cache() — Method in class CacheTrait
- Helper to retrieve data from cache store.
- ClassTree — Class in namespace Pouch\Helpers
- Pouch::count() — Method in class Pouch
- Count elements of the container.
- Resolvable::createClassDependency() — Method in class Resolvable
- Creates missing class if it can be found in the container. Auto-injecting classes from within the container require them to be prefixed with \Pouch\Key.
D
- ApcuCache::delete() — Method in class ApcuCache
- Delete an item from the cache by its unique key.
- ApcuCache::deleteMultiple() — Method in class ApcuCache
- Deletes multiple cache items in a single operation.
E
- ApcuCache::enabled() — Method in class ApcuCache
- Verify APCu is installed and available.
F
- ApcuCache::factory() — Method in class ApcuCache
- Returns an instance of self.
- FactoryTrait — Class in namespace Pouch\Helpers
- $FactoryTrait#factoryArgs — Property in class FactoryTrait
- Holds the data to be passed as args to the factory.
- FactoryTrait::factory() — Method in class FactoryTrait
- Set factory for upcoming bind or create a factory callable.
- HookManager::factory() — Method in class HookManager
- Returns an instance of self.
G
- ApcuCache::get() — Method in class ApcuCache
- Fetches a value from the cache.
- ApcuCache::getMultiple() — Method in class ApcuCache
- Obtains multiple cache items by their unique keys.
- Item::getName() — Method in class Item
- Returns the key of this item.
- Item::getRaw() — Method in class Item
- Returns the raw closure, non-executed.
- Item::getContent() — Method in class Item
- Returns the contents of the container.
- ItemInterface::getName() — Method in class ItemInterface
- Returns the class name of the container.
- ItemInterface::getContent() — Method in class ItemInterface
- Returns the contents of the container.
- Pouch::get() — Method in class Pouch
- Resolve specific key from the replaceables array.
- Pouch::getHookManager() — Method in class Pouch
- Returns the hook manager.
- Resolvable::getObject() — Method in class Resolvable
- Return the current object of this instance.
- Resolvable::getType() — Method in class Resolvable
- Get the type of an anything accurately. If it's an object, the exact class name will be returned.
- Resolvable::getName() — Method in class Resolvable
- Name getter.
- Resolvable::getContent() — Method in class Resolvable
- From createClassDependency's inner class
H
- ApcuCache::has() — Method in class ApcuCache
- Determines whether an item is present in the cache.
- HookManager — Class in namespace Pouch\Helpers
- Pouch::has() — Method in class Pouch
- See if specific key exists in our replaceables.
I
- Item — Class in namespace Pouch\Container
- Item::isResolvedByName() — Method in class Item
- Returns whether this item can be resolved without typehint and instead uses its name for being resolved.
- Item::isFactory() — Method in class Item
- Whether or not this item is a factory.
- ItemInterface — Class in namespace Pouch\Container
- InvalidArgumentException — Class in namespace Pouch\Exceptions
- $FactoryTrait#isFactory — Property in class FactoryTrait
- Whether a bind will be a factory.
- Pouch::item() — Method in class Pouch
- Returns the item instance for the key.
- Resolvable::isAnonymous() — Method in class Resolvable
- Adapter to comply to ReflectionClass.
L
- $ClassTree#loadDev — Property in class ClassTree
- Include autoload-dev in results.
M
- Resolvable::make() — Method in class Resolvable
- Set the object for the resolvable. Also resolve constructor dependencies if needed.
N
- NotFoundException — Class in namespace Pouch\Exceptions
- $Pouch#named — Property in class Pouch
- Whether this item should be retrievable by only its name and without a typehint.
- Pouch::named() — Method in class Pouch
- $Resolvable#name — Property in class Resolvable
- From createClassDependency's inner class
O
- $Resolvable#object — Property in class Resolvable
- Contains the original object.
P
- PouchException — Class in namespace Pouch\Exceptions
- Pouch — Class in namespace Pouch
- $Resolvable#pouch — Property in class Resolvable
- Holds the Pouch instance. Default to singleton version (pouch()).
R
- ResolvableException — Class in namespace Pouch\Exceptions
- AliasTrait::register() — Method in class AliasTrait
- Alias for bind.
- AliasTrait::resolve() — Method in class AliasTrait
- Fetches from container with getContent.
- HookManager::runBeforeGet() — Method in class HookManager
- HookManager::runAfterGet() — Method in class HookManager
- HookManager::runBeforeSet() — Method in class HookManager
- HookManager::runAfterSet() — Method in class HookManager
- $Pouch#replaceables — Property in class Pouch
- Store all the data that can be replaced.
- Pouch::registerNamespaces() — Method in class Pouch
- Register one or more namespaces for automatic resolution.
- Pouch::raw() — Method in class Pouch
- Resolve a key without invoking it if it happens to be a factory.
- Pouch::remove() — Method in class Pouch
- Remove key from the container.
- Resolvable — Class in namespace Pouch
- Resolvable::resolveDependencies() — Method in class Resolvable
- Resolve the dependencies for all parameters.
- Resolvable::resolveInternalDependencies() — Method in class Resolvable
- Returns params (dependencies) for internal anonymous classes.
S
- ApcuCache::set() — Method in class ApcuCache
- Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
- ApcuCache::setMultiple() — Method in class ApcuCache
- Persists a set of key => value pairs in the cache, with an optional TTL.
- Item::setName() — Method in class Item
- Set the name of this item.
- Item::setResolvedByName() — Method in class Item
- Item::setFactory() — Method in class Item
- Item::setFactoryArgs() — Method in class Item
- Set the arguments to instantiate the factory with.
- AliasTrait::set() — Method in class AliasTrait
- Alias for bind.
- $ClassTree#startPath — Property in class ClassTree
- The path to be scanned.
- FactoryTrait::setFactoryArgs() — Method in class FactoryTrait
- Set the arguments during fetch-time.
- $Pouch#singletons — Property in class Pouch
- Store all singletons.
- Pouch::singleton() — Method in class Pouch
- Insert or return a singleton instance from our container.
U
- ClassTree::unfold() — Method in class ClassTree
- Get all sub-namespaces recursively for a namespace.
V
- Pouch::validateData() — Method in class Pouch
- Throws an exception if the callable argument is not a callable.
W
- FactoryTrait::withArgs() — Method in class FactoryTrait
- Set the args to construct the factory with.
_
- Item::__construct() — Method in class Item
- Item constructor.
- Item::__toString() — Method in class Item
- String representation of an item.
- AliasTrait::__get() — Method in class AliasTrait
- Allow retrieving container values via magic properties.
- AliasTrait::__isset() — Method in class AliasTrait
- Allows the use of isset() to determine if something exists in the container.
- AliasTrait::__unset() — Method in class AliasTrait
- Allows the use of unset() to remove key a key from the container.
- AliasTrait::__call() — Method in class AliasTrait
- Bind a new key or fetch an existing one if no argument is provided.
- Pouch::__toString() — Method in class Pouch
- String representation of a pouch instance.
- Resolvable::__construct() — Method in class Resolvable
- From createClassDependency's inner class
- Resolvable::__call() — Method in class Resolvable
- Magic __call method to handle the automatic resolution of parameters.