title: In an extbase extension, how to access the persistence layer from a scheduler task?
body: <p>What sounds a bit academic in the title is actually quite straightforward: I have set up a TYPO3 6.1 extbase extension that I've equipped with a scheduler task. The task is supposed to import a CSV file and save it into the extension's database fields. </p>
  
  <p>But how do I tell the scheduler task to use the extension's model etc. and save the received data into the persistence layer?</p>
  
  <p>I've seen this answer to a similar question: <a href="https://stackoverflow.com/questions/21197709/execute-repository-functions-in-scheduler-task">Execute repository functions in scheduler task</a> and I think it points the right way, but I think need a full example to start understanding how the dependency injection works.</p>