Update index.md

use @inject annotation and update composer require version to ~2.0 (Nette 2.2)