<?php

namespace Estaty\Controller;

use Estaty\Model\Property\Apartment\Apartment;

class HomepageController
{
    public function show(\Silex\Application $app)
    {
        $property = new Apartment();
        $property->setName('Lovely apartment');

        return $app->render('homepage.html.twig', array(
            'property' => $property
        ));
    }
}

<?php

namespace Estaty\Controller;

use Estaty\Application;
use Estaty\Model\Property\Apartment\Apartment;

class HomepageController
{
    public function show(Application $app)
    {
        $property = new Apartment();
        $property->setName('Lovely apartment');

        return $app->render('homepage.html.twig', array(
            'property' => $property
        ));
    }
}

Use Estaty\Application in controllers type hints
Use Estaty\Application in controllers type hints

Closes #5
