Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created ContextInterface #112

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

luismulinari
Copy link

Created ContextInterface to facilitate the "override" process.

I had a case when I needed to use "custom" Context because my "Finite twig extensions" should have other behavior. OK, I can extend the Context and use this, but in my specific case I don't need the Factory on constructor, for example.

I believe that with a Interface, this process will be more easy.

* @return StateMachineInterface
*/
public function getStateMachine($object, $graph = 'default');
}
Copy link
Owner

Choose a reason for hiding this comment

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

Missing newline at end of file

@yohang
Copy link
Owner

yohang commented Jan 31, 2016

Seems ok, i'll merge after code review.

@luismulinari
Copy link
Author

Fixed. Thank you for your attention.

@luismulinari luismulinari reopened this Feb 1, 2016
@luismulinari
Copy link
Author

Hi @yohang . I finished the code review. Do you have any other remarks?

@yohang
Copy link
Owner

yohang commented Feb 7, 2016

@luismulinari I'll have a look tomorrow, I was on vacation for a week.

@luismulinari
Copy link
Author

No problem @yohang . I can wait.

@luismulinari
Copy link
Author

Hi @yohang! Do you have an opinion about my PR?

use Finite\StateMachine\StateMachineInterface;

/**
* Interface that all class that have properties must implements
Copy link

Choose a reason for hiding this comment

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

implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants