Injecting variable to class PHP

     

I am trying to craft my own MVC structure with PHRoute Smarty and Doctrine2 via composer. My project structure is here:


- app  --- core  ------ Config.php  ------ Controller.php  --- controllers  --- models  --- config  ------ database.config.php  ------ enviroment.config.php  --- Routes.php  --- bootstrap.php  - index.php  - .htaccess  

My composer.json file:


{   "name": "serdartpkl/blog"   "description": "A simple blog app.