Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sourcemlbundle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dj3c1t
sourcemlbundle
Commits
7922daf7
Commit
7922daf7
authored
Sep 16, 2015
by
dj3c1t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import initial
parents
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
386 additions
and
0 deletions
+386
-0
AlbumController.php
Controller/Account/AlbumController.php
+17
-0
AuthorController.php
Controller/Account/AuthorController.php
+17
-0
SourceController.php
Controller/Account/SourceController.php
+17
-0
TrackController.php
Controller/Account/TrackController.php
+17
-0
AlbumController.php
Controller/Source/AlbumController.php
+17
-0
AuthorController.php
Controller/Source/AuthorController.php
+17
-0
SourceController.php
Controller/Source/SourceController.php
+17
-0
TrackController.php
Controller/Source/TrackController.php
+17
-0
Configuration.php
DependencyInjection/Configuration.php
+29
-0
Dj3c1tSourceMLExtension.php
DependencyInjection/Dj3c1tSourceMLExtension.php
+28
-0
Dj3c1tSourceMLBundle.php
Dj3c1tSourceMLBundle.php
+9
-0
dj3c1t_menus.yml
Resources/config/dj3c1t_menus.yml
+48
-0
routing.yml
Resources/config/routing.yml
+31
-0
services.yml
Resources/config/services.yml
+4
-0
index.html.twig
Resources/views/Account/Album/index.html.twig
+11
-0
index.html.twig
Resources/views/Account/Author/index.html.twig
+11
-0
index.html.twig
Resources/views/Account/Source/index.html.twig
+11
-0
index.html.twig
Resources/views/Account/Track/index.html.twig
+11
-0
index.html.twig
Resources/views/Source/Album/index.html.twig
+11
-0
index.html.twig
Resources/views/Source/Author/index.html.twig
+11
-0
index.html.twig
Resources/views/Source/Source/index.html.twig
+11
-0
index.html.twig
Resources/views/Source/Track/index.html.twig
+11
-0
DefaultControllerTest.php
Tests/Controller/DefaultControllerTest.php
+13
-0
No files found.
Controller/Account/AlbumController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Account
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
AlbumController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Account:Album/index.html.twig'
,
array
(
)
);
}
}
Controller/Account/AuthorController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Account
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
AuthorController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Account:Author/index.html.twig'
,
array
(
)
);
}
}
Controller/Account/SourceController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Account
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
SourceController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Account:Source/index.html.twig'
,
array
(
)
);
}
}
Controller/Account/TrackController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Account
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
TrackController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Account:Track/index.html.twig'
,
array
(
)
);
}
}
Controller/Source/AlbumController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Source
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
AlbumController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Source:Album/index.html.twig'
,
array
(
)
);
}
}
Controller/Source/AuthorController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Source
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
AuthorController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Source:Author/index.html.twig'
,
array
(
)
);
}
}
Controller/Source/SourceController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Source
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
SourceController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Source:Source/index.html.twig'
,
array
(
)
);
}
}
Controller/Source/TrackController.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Controller\Source
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
class
TrackController
extends
Controller
{
public
function
indexAction
()
{
return
$this
->
render
(
'Dj3c1tSourceMLBundle:Source:Track/index.html.twig'
,
array
(
)
);
}
}
DependencyInjection/Configuration.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\DependencyInjection
;
use
Symfony\Component\Config\Definition\Builder\TreeBuilder
;
use
Symfony\Component\Config\Definition\ConfigurationInterface
;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class
Configuration
implements
ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public
function
getConfigTreeBuilder
()
{
$treeBuilder
=
new
TreeBuilder
();
$rootNode
=
$treeBuilder
->
root
(
'dj3c1t_source_ml'
);
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return
$treeBuilder
;
}
}
DependencyInjection/Dj3c1tSourceMLExtension.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\DependencyInjection
;
use
Symfony\Component\DependencyInjection\ContainerBuilder
;
use
Symfony\Component\Config\FileLocator
;
use
Symfony\Component\HttpKernel\DependencyInjection\Extension
;
use
Symfony\Component\DependencyInjection\Loader
;
/**
* This is the class that loads and manages your bundle configuration
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
*/
class
Dj3c1tSourceMLExtension
extends
Extension
{
/**
* {@inheritdoc}
*/
public
function
load
(
array
$configs
,
ContainerBuilder
$container
)
{
$configuration
=
new
Configuration
();
$config
=
$this
->
processConfiguration
(
$configuration
,
$configs
);
$loader
=
new
Loader\YamlFileLoader
(
$container
,
new
FileLocator
(
__DIR__
.
'/../Resources/config'
));
$loader
->
load
(
'services.yml'
);
}
}
Dj3c1tSourceMLBundle.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle
;
use
Symfony\Component\HttpKernel\Bundle\Bundle
;
class
Dj3c1tSourceMLBundle
extends
Bundle
{
}
Resources/config/dj3c1t_menus.yml
0 → 100644
View file @
7922daf7
dj3c1t_menus
:
sourceml
:
account
:
routes
:
-
account_authors
-
account_albums
-
account_tracks
-
account_sources
items
:
authors
:
route
:
account_authors
label
:
Auteurs
glyphicon
:
glyphicon-edit
albums
:
route
:
account_albums
label
:
Albums
glyphicon
:
glyphicon-edit
tracks
:
route
:
account_tracks
label
:
Morceaux
glyphicon
:
glyphicon-edit
sources
:
route
:
account_sources
label
:
Sources
glyphicon
:
glyphicon-edit
sources
:
routes
:
-
authors
-
albums
-
tracks
-
sources
items
:
authors
:
route
:
authors
label
:
Auteurs
glyphicon
:
glyphicon-triangle-right
albums
:
route
:
albums
label
:
Albums
glyphicon
:
glyphicon-triangle-right
tracks
:
route
:
tracks
label
:
Morceaux
glyphicon
:
glyphicon-triangle-right
sources
:
route
:
sources
label
:
Sources
glyphicon
:
glyphicon-triangle-right
Resources/config/routing.yml
0 → 100644
View file @
7922daf7
account_authors
:
path
:
/account/authors
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Account/Author
:
index
}
account_albums
:
path
:
/account/albums
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Account/Album
:
index
}
account_tracks
:
path
:
/account/tracks
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Account/Track
:
index
}
account_sources
:
path
:
/account/sources
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Account/Source
:
index
}
authors
:
path
:
/authors
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Source/Author
:
index
}
albums
:
path
:
/albums
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Source/Album
:
index
}
tracks
:
path
:
/tracks
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Source/Track
:
index
}
sources
:
path
:
/sources
defaults
:
{
_controller
:
Dj3c1tSourceMLBundle
:
Source/Source
:
index
}
Resources/config/services.yml
0 → 100644
View file @
7922daf7
services
:
# dj3c1t_source_ml.example:
# class: Dj3c1t\SourceMLBundle\Example
# arguments: [@service_id, "plain_value", %parameter%]
Resources/views/Account/Album/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"account_albums"
>
<header>
<h1>
Albums
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Resources/views/Account/Author/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"account_authors"
>
<header>
<h1>
Auteurs
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Resources/views/Account/Source/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"account_sources"
>
<header>
<h1>
Sources
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Resources/views/Account/Track/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"account_tracks"
>
<header>
<h1>
Morceaux
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Resources/views/Source/Album/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"albums"
>
<header>
<h1>
Albums
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Resources/views/Source/Author/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"authors"
>
<header>
<h1>
Auteurs
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Resources/views/Source/Source/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"sources"
>
<header>
<h1>
Sources
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Resources/views/Source/Track/index.html.twig
0 → 100644
View file @
7922daf7
{%
extends
'::base.html.twig'
%}
{%
block
main
%}
<section
id=
"tracks"
>
<header>
<h1>
Morceaux
</h1>
</header>
<div
class=
"main"
>
</div>
</section>
{%
endblock
%}
Tests/Controller/DefaultControllerTest.php
0 → 100644
View file @
7922daf7
<?php
namespace
Dj3c1t\SourceMLBundle\Tests\Controller
;
use
Symfony\Bundle\FrameworkBundle\Test\WebTestCase
;
class
DefaultControllerTest
extends
WebTestCase
{
public
function
testIndex
()
{
$this
->
assertTrue
(
true
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment