Update index.md

use @inject annotation and update composer require version to ~2.0 (Nette 2.2)
Merge pull request #52 from Northys/master

Update index.md