Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
technobel.sf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mathieu
technobel.sf
Commits
c964e7da
Commit
c964e7da
authored
Jul 09, 2018
by
Mat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crée un nouveeau Api2Bundle
parent
6959fb4e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
1 deletion
+40
-1
app/AppKernel.php
app/AppKernel.php
+1
-0
app/config/config.yml
app/config/config.yml
+1
-0
app/config/routing.yml
app/config/routing.yml
+5
-0
composer.json
composer.json
+2
-1
src/Api2Bundle/Api2Bundle.php
src/Api2Bundle/Api2Bundle.php
+9
-0
src/Api2Bundle/Controller/DefaultController.php
src/Api2Bundle/Controller/DefaultController.php
+17
-0
src/Api2Bundle/Resources/config/services.yml
src/Api2Bundle/Resources/config/services.yml
+4
-0
src/Api2Bundle/Resources/views/Default/index.html.twig
src/Api2Bundle/Resources/views/Default/index.html.twig
+1
-0
web/config.php
web/config.php
+0
-0
No files found.
app/AppKernel.php
View file @
c964e7da
...
...
@@ -26,6 +26,7 @@ class AppKernel extends Kernel
new
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle
(),
new
FOS\RestBundle\FOSRestBundle
(),
new
Nelmio\CorsBundle\NelmioCorsBundle
(),
new
Api2Bundle\Api2Bundle
(),
];
if
(
in_array
(
$this
->
getEnvironment
(),
[
'dev'
,
'test'
],
true
))
{
...
...
app/config/config.yml
View file @
c964e7da
...
...
@@ -6,6 +6,7 @@ imports:
-
{
resource
:
"
@AssoBundle/Resources/config/services.yml"
}
-
{
resource
:
"
@APIBundle/Resources/config/services.yml"
}
-
{
resource
:
"
@SocketBundle/Resources/config/services.yml"
}
-
{
resource
:
"
@Api2Bundle/Resources/config/services.yml"
}
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
...
...
app/config/routing.yml
View file @
c964e7da
api2
:
resource
:
"
@Api2Bundle/Controller/"
type
:
annotation
prefix
:
/API/v2
socket
:
resource
:
"
@SocketBundle/Controller/"
type
:
annotation
...
...
composer.json
View file @
c964e7da
...
...
@@ -7,7 +7,8 @@
"TechnoBundle\\"
:
"src/TechnoBundle"
,
"AssoBundle\\"
:
"src/AssoBundle"
,
"APIBundle\\"
:
"src/APIBundle"
,
"SocketBundle\\"
:
"src/SocketBundle"
"SocketBundle\\"
:
"src/SocketBundle"
,
"Api2Bundle\\"
:
"src/Api2Bundle"
},
"classmap"
:
[
"app/AppKernel.php"
,
...
...
src/Api2Bundle/Api2Bundle.php
0 → 100755
View file @
c964e7da
<?php
namespace
Api2Bundle
;
use
Symfony\Component\HttpKernel\Bundle\Bundle
;
class
Api2Bundle
extends
Bundle
{
}
src/Api2Bundle/Controller/DefaultController.php
0 → 100755
View file @
c964e7da
<?php
namespace
Api2Bundle\Controller
;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Sensio\Bundle\FrameworkExtraBundle\Configuration\Route
;
class
DefaultController
extends
Controller
{
/**
* @Route("/")
*/
public
function
indexAction
()
{
return
$this
->
render
(
'Api2Bundle:Default:index.html.twig'
);
}
}
src/Api2Bundle/Resources/config/services.yml
0 → 100755
View file @
c964e7da
services
:
# api2.example:
# class: Api2Bundle\Example
# arguments: ["@service_id", "plain_value", "%parameter%"]
src/Api2Bundle/Resources/views/Default/index.html.twig
0 → 100755
View file @
c964e7da
Hello World!
web/config.php
100644 → 100755
View file @
c964e7da
File mode changed from 100644 to 100755
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