Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZacharyJacobCollins/0797a8941a5f911bff0c9db45ae3ac64 to your computer and use it in GitHub Desktop.
Save ZacharyJacobCollins/0797a8941a5f911bff0c9db45ae3ac64 to your computer and use it in GitHub Desktop.
* Sets up specific DI container configuration
*
* @param AuthSession $auth_session
*/
protected function setup_container(AuthSession $auth_session)
{
$this->container->set('provider', Inflector::camelize($auth_session->get_provider()->get_name()));
$this->container->set('provider.attributes', Inflector::camelize($auth_session->get_implementation()->get_name()));
foreach ($this->config->get_container() as $class => $definition)
{
$this->container->set($class, $definition);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment