mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
allow server:run with built-in server and create route loader
This commit is contained in:
@@ -36,7 +36,7 @@ class AppKernel extends Kernel
|
||||
*/
|
||||
public function getLogDir()
|
||||
{
|
||||
return sys_get_temp_dir().'/CustomFieldsBundle/logs';
|
||||
return $this->getRootDir().'/../logs';
|
||||
}
|
||||
}
|
||||
|
||||
|
13
Tests/Fixtures/App/app/Resources/views/base.html.twig
Normal file
13
Tests/Fixtures/App/app/Resources/views/base.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
||||
{% block stylesheets %}{% endblock %}
|
||||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
{% block javascripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
13
Tests/Fixtures/App/app/autoload.php
Normal file
13
Tests/Fixtures/App/app/autoload.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
||||
use Composer\Autoload\ClassLoader;
|
||||
|
||||
/**
|
||||
* @var ClassLoader $loader
|
||||
*/
|
||||
$loader = require __DIR__.'/../../../../vendor/autoload.php';
|
||||
|
||||
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
||||
|
||||
return $loader;
|
6
Tests/Fixtures/App/app/config/parameters__.yml
Normal file
6
Tests/Fixtures/App/app/config/parameters__.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
parameters:
|
||||
database_host: 127.0.0.1
|
||||
database_port: 5434
|
||||
database_name: test0
|
||||
database_user: symfony
|
||||
database_password: symfony
|
@@ -1,4 +1,4 @@
|
||||
cl_custom_fields:
|
||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing.yml"
|
||||
prefix: /
|
||||
resource: .
|
||||
type: chill_routes
|
||||
|
||||
|
0
Tests/Fixtures/App/logs/empty
Normal file
0
Tests/Fixtures/App/logs/empty
Normal file
Reference in New Issue
Block a user