Skip to content
Snippets Groups Projects
Unverified Commit 73a3941d authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Fix loading Utils

parent 12ced79d
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ services: ...@@ -39,7 +39,7 @@ services:
# this creates a service per class whose id is the fully-qualified class name # this creates a service per class whose id is the fully-qualified class name
App\: App\:
resource: '../src/*' resource: '../src/*'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}' exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php,Utils.php}'
# controllers are imported separately to make sure services can be injected # controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class # as action arguments even if you don't extend any base controller class
......
<?php <?php
namespace App;
class Utils {} // dummy class, just for the auto loader not to complain
// Global methodds helper. This file is loaded automatically // Global methodds helper. This file is loaded automatically
function is_associative_array($a) { function is_associative_array($a) {
if (!is_array($a)) return false; if (!is_array($a)) return false;
......
...@@ -5,6 +5,7 @@ use Symfony\Component\ErrorHandler\Debug; ...@@ -5,6 +5,7 @@ use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
require dirname(__DIR__).'/config/bootstrap.php'; require dirname(__DIR__).'/config/bootstrap.php';
require dirname(__DIR__).'/src/Utils.php';
if ($_SERVER['APP_DEBUG']) { if ($_SERVER['APP_DEBUG']) {
umask(0000); umask(0000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment