Skip to content

Services

Kyle Spraggs edited this page Jul 20, 2014 · 17 revisions

Services

Services in SpiffyFramework are managed by the SpiffyInject component. SpiffyInject is SpiffyFramework's light-weight inversion of control container and is part of the foundation to the entire framework.

SpiffyInject also manage's package parameters. You can read more about this feature in the package documentation.

Creating services

By default, each package loads services using the services.php file in config/services.php. Below is a simple example of the config/services.php file.

// file: package_name/config/services.php
// 'service_name' => 'service_specification'
return [
    'application.service' => 'Application\Service',
];