Skip to content

Conversation

@laoneo
Copy link
Member

@laoneo laoneo commented Feb 16, 2018

Summary of Changes

As discussed in #19672 the name attribute for the getPathway function should be removed as the container is the store to manage the different pathway objects.

Additionally the unit tests get fixed.

* @since 3.2
*
* @expectedException RuntimeException
* @expectedException \Joomla\DI\Exception\KeyNotFoundException
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep b/c on this bit please. It's easy to add a has check on the container and throw the same RuntimeException we did in the Pathway::getInstance method

Copy link
Contributor

@wilsonge wilsonge Feb 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!$this->getContainer()->has(ucfirst($name) . 'Pathway'))
{
	throw new \RuntimeException(\JText::sprintf('JLIB_APPLICATION_ERROR_PATHWAY_LOAD', $name), 500);
}

In the getPathway method

@laoneo
Copy link
Member Author

laoneo commented Feb 16, 2018

Now travis is happy again on 4.

@wilsonge wilsonge merged commit db17acc into joomla:4.0-dev Feb 16, 2018
@wilsonge wilsonge added this to the Joomla 4.0 milestone Feb 16, 2018
@wilsonge wilsonge deleted the j4/application/pathway branch February 16, 2018 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants