Parses controllers dependencies in the function format.