title: Depending on interfaces instead of framework services
body: <p>For example I use <code>SomeFramework</code> which have <code>mechanism</code> to deal with controllers/actions. And I want to write <code>MyService</code> some methods of which depend on <em>current action name</em>.</p>
  
  <p>Obviously I can do relation in <code>MyService</code> on <code>MechanismInterface</code> provided by <code>SomeFramework</code>.</p>
  
  <p>But will it be better if I will create an interface <code>ActionResolver</code> and its implementation <code>SomeFrameworkActionResolver</code>?</p>
  
  <p><code>SomeFrameworkActionResolver</code> will depend on <code>MechanismInterface</code>, but <code>MyService</code> will depend on <code>ActionResolver</code> interface.</p>