extend-example
- A directory
src
created. - Controller was moved to the file
src\Controller\IndexControoler
. - Namespace
Example
registered in a composer as PSR-4 because PSR-0 is deprecated. - Autoload file of composer added to
public/index.php
. - A storage
CsvFileStorage
for work with csv files created in a foldersrc/Storage
. - A model
IndexModel
keep a logic, to get data from a storage and to give data to a controller. - A
AbstractController
with a constructor created. - A
RestController
with default methods created. - A simple
JsonView
class created for use in controllers.