Added models for albums and songs
This commit is contained in:
@ -9,7 +9,8 @@ use Slim\Views\TwigExtension;
|
||||
use Noodlehaus\Config;
|
||||
|
||||
// Our dependencies
|
||||
//use Fieldprotocol\User\User;
|
||||
use Fieldprotocol\Music\Album;
|
||||
use FieldProtocol\Music\Song;
|
||||
|
||||
// Let's get this session started
|
||||
session_cache_limiter(false);
|
||||
@ -48,12 +49,14 @@ require 'routes.php';
|
||||
|
||||
//$app->auth = false;
|
||||
|
||||
$app->container->set('user', function() {
|
||||
return new User;
|
||||
});
|
||||
// Album singleton
|
||||
$app->container->set('album', function() {
|
||||
return new Album;
|
||||
})
|
||||
|
||||
$app->container->set('post', function() {
|
||||
return new Post;
|
||||
// Song singleton
|
||||
$app->container->set('song', function() {
|
||||
return new Song;
|
||||
});
|
||||
|
||||
// Slappin' some hoes with our views
|
||||
|
Reference in New Issue
Block a user