yohang / Finite

A Simple PHP Finite State Machine
http://yohan.giarel.li/Finite
MIT License
1.31k stars 188 forks source link

Use container services in loader configs #34

Closed winzou closed 10 years ago

winzou commented 10 years ago

This PR adds the ability to configure container services in the loader configs.

You can now do:

....
    callbacks:
        before:
            -
                do: [@my_existing_service, method]

And it will call the real service my_existing_service. This was not possible before.

matteosister commented 10 years ago

awesome! :+1:

yohang commented 10 years ago

Very nice !

Could you add an unit test on the compiler pass ?

winzou commented 10 years ago

@yohang done ;)

yohang commented 10 years ago

Fine, as usual ;)