Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
file-upload-bundle
Commits
cbca3756
Commit
cbca3756
authored
Aug 01, 2017
by
Guillaume Perréal
Browse files
Passage en PHP 7.1.
parent
98609835
Changes
37
Hide whitespace changes
Inline
Side-by-side
Command/CheckCommand.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Command/CollectGarbageCommand.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Command/CreateCommand.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Command/ReadCommand.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Controller/UploadController.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
@@ -31,7 +31,7 @@ use Symfony\Component\Templating\EngineInterface;
*/
class
UploadController
extends
Controller
{
const
CSRF_INTENTION
=
'uploaded_file'
;
public
const
CSRF_INTENTION
=
'uploaded_file'
;
/**
* @var FileManagerInterface
...
...
@@ -89,7 +89,7 @@ class UploadController extends Controller
$data
[
'name'
],
$data
[
'size'
],
$data
[
'type'
],
isset
(
$data
[
'lastModified'
]
)
?
$data
[
'lastModified'
]
:
null
,
$data
[
'lastModified'
]
?
?
null
,
null
!==
$token
?
$token
->
getUsername
()
:
null
,
$request
->
getClientIp
()
);
...
...
Controller/UploadedFileController.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
DependencyInjection/Configuration.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
DependencyInjection/IrsteaFileUploadExtension.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Entity/Repository/UploadedFileRepository.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Entity/UploadedFile.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
@@ -29,7 +29,7 @@ class UploadedFile implements UploadedFileInterface
// Taille de bloc utilisé pour les copies
public
static
$copyBlockSize
=
8192
;
const
ORPHAN_PREFIX
=
'orphan/'
;
public
const
ORPHAN_PREFIX
=
'orphan/'
;
/**
* @ORM\Id
...
...
Event/FileUploadCompleteEvent.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Exception/Exception.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Exception/RejectedFileException.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
FileUploadEvents.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
@@ -11,5 +11,5 @@ namespace Irstea\FileUploadBundle;
*/
final
class
FileUploadEvents
{
const
UPLOAD_COMPLETE
=
'file_upload.complete'
;
public
const
UPLOAD_COMPLETE
=
'file_upload.complete'
;
}
Form/DataTranformer/UploadedFileTransformer.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Form/Type/FileUploadType.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Http/UploadedFileResponse.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
IrsteaFileUploadBundle.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Listener/CreationDataListener.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Listener/UploadedFileListener.php
View file @
cbca3756
<?php
<?php
declare
(
strict_types
=
1
);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
...
...
Prev
1
2
Next
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