PHP Classes

File: src/app.php

Recommend this page to a friend!
  Classes of Sergii Pryz   PHP Location Based Search API   src/app.php   Download  
File: src/app.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Location Based Search API
API server for searching places near a location
Author: By
Last change:
Date: 7 years ago
Size: 464 bytes
 

Contents

Class file image Download
<?php
use Picamator\PlaceSearchApi\App\Service\ServiceProvider;
use
Picamator\PlaceSearchApi\App\Controller\Provider\IndexProvider;
use
Picamator\PlaceSearchApi\App\Controller\Provider\BarProvider;

// @codeCoverageIgnoreStart

// app
$app = new Silex\Application();

// service register
$app->register(new ServiceProvider());

// route
$app->mount('/', new IndexProvider());
$app->mount('/api/v1/bar', new BarProvider());

return
$app;

// @codeCoverageIgnoreEnd