Procházet zdrojové kódy

[HttpFoundation] Moved licence

Dominique Bongiraud před 14 roky
rodič
revize
996c2b0914

+ 9 - 0
src/Symfony/Component/HttpFoundation/Cookie.php

@@ -1,5 +1,14 @@
 <?php
 
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 namespace Symfony\Component\HttpFoundation;
 
 /**

+ 3 - 2
src/Symfony/Component/HttpFoundation/File/Exception/AccessDeniedException.php

@@ -1,15 +1,16 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\Exception;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\Exception;
+
 /**
  * Thrown when the access on a file was denied.
  *

+ 3 - 2
src/Symfony/Component/HttpFoundation/File/Exception/FileException.php

@@ -1,15 +1,16 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\Exception;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\Exception;
+
 /**
  * Thrown when an error occurred in the component File
  *

+ 3 - 2
src/Symfony/Component/HttpFoundation/File/Exception/FileNotFoundException.php

@@ -1,15 +1,16 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\Exception;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\Exception;
+
 /**
  * Thrown when a file was not found
  *

+ 7 - 6
src/Symfony/Component/HttpFoundation/File/File.php

@@ -1,19 +1,20 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File;
-
-use Symfony\Component\HttpFoundation\File\Exception\FileException;
-use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
-use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File;
+
+use Symfony\Component\HttpFoundation\File\Exception\FileException;
+use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
+use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser;
+
 /**
  * A file in the file system
  *

+ 6 - 5
src/Symfony/Component/HttpFoundation/File/MimeType/ContentTypeMimeTypeGuesser.php

@@ -1,18 +1,19 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\MimeType;
-
-use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
-use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\MimeType;
+
+use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
+use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
+
 /**
  * Guesses the mime type using the PHP function mime_content_type().
  *

+ 6 - 5
src/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php

@@ -1,18 +1,19 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\MimeType;
-
-use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
-use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\MimeType;
+
+use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
+use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
+
 /**
  * Guesses the mime type with the binary "file" (only available on *nix)
  *

+ 6 - 5
src/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php

@@ -1,18 +1,19 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\MimeType;
-
-use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
-use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\MimeType;
+
+use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
+use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
+
 /**
  * Guesses the mime type using the PECL extension FileInfo
  *

+ 6 - 5
src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php

@@ -1,18 +1,19 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\MimeType;
-
-use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
-use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\MimeType;
+
+use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
+use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
+
 /**
  * A singleton mime type guesser.
  *

+ 3 - 2
src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesserInterface.php

@@ -1,15 +1,16 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File\MimeType;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File\MimeType;
+
 /**
  * Guesses the mime type of a file
  *

+ 5 - 4
src/Symfony/Component/HttpFoundation/File/UploadedFile.php

@@ -1,17 +1,18 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\File;
-
-use Symfony\Component\HttpFoundation\File\Exception\FileException;
-
 /*
  * This file is part of the Symfony package.
+ * 
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\File;
+
+use Symfony\Component\HttpFoundation\File\Exception\FileException;
+
 /**
  * A file uploaded through a form.
  *

+ 2 - 2
src/Symfony/Component/HttpFoundation/SessionStorage/ArraySessionStorage.php

@@ -1,7 +1,5 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\SessionStorage;
-
 /*
  * This file is part of the Symfony package.
  *
@@ -11,6 +9,8 @@ namespace Symfony\Component\HttpFoundation\SessionStorage;
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\SessionStorage;
+
 /**
  * ArraySessionStorage.
  *

+ 2 - 2
src/Symfony/Component/HttpFoundation/SessionStorage/NativeSessionStorage.php

@@ -1,7 +1,5 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\SessionStorage;
-
 /*
  * This file is part of the Symfony package.
  *
@@ -11,6 +9,8 @@ namespace Symfony\Component\HttpFoundation\SessionStorage;
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\SessionStorage;
+
 /**
  * NativeSessionStorage.
  *

+ 2 - 2
src/Symfony/Component/HttpFoundation/SessionStorage/PdoSessionStorage.php

@@ -1,7 +1,5 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\SessionStorage;
-
 /*
  * This file is part of the Symfony package.
  *
@@ -11,6 +9,8 @@ namespace Symfony\Component\HttpFoundation\SessionStorage;
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\SessionStorage;
+
 /**
  * PdoSessionStorage.
  *

+ 2 - 2
src/Symfony/Component/HttpFoundation/SessionStorage/SessionStorageInterface.php

@@ -1,7 +1,5 @@
 <?php
 
-namespace Symfony\Component\HttpFoundation\SessionStorage;
-
 /*
  * This file is part of the Symfony package.
  *
@@ -11,6 +9,8 @@ namespace Symfony\Component\HttpFoundation\SessionStorage;
  * file that was distributed with this source code.
  */
 
+namespace Symfony\Component\HttpFoundation\SessionStorage;
+
 /**
  * SessionStorageInterface.
  *