Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoGoCarto
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pixel Humain
GoGoCarto
Commits
73a3941d
Unverified
Commit
73a3941d
authored
4 years ago
by
Sebastian Castro
Browse files
Options
Downloads
Patches
Plain Diff
Fix loading Utils
parent
12ced79d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/services.yaml
+1
-1
1 addition, 1 deletion
config/services.yaml
src/Utils.php
+0
-4
0 additions, 4 deletions
src/Utils.php
web/index.php
+1
-0
1 addition, 0 deletions
web/index.php
with
2 additions
and
5 deletions
config/services.yaml
+
1
−
1
View file @
73a3941d
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/Utils.php
+
0
−
4
View file @
73a3941d
<?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
;
...
...
This diff is collapsed.
Click to expand it.
web/index.php
+
1
−
0
View file @
73a3941d
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment