forked from pimcore/pimcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31f572e
commit ac85677
Showing
4 changed files
with
69 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Pimcore | ||
* | ||
* This source file is available under two different licenses: | ||
* - GNU General Public License version 3 (GPLv3) | ||
* - Pimcore Commercial License (PCL) | ||
* Full copyright and license information is available in | ||
* LICENSE.md which is distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) | ||
* @license http://www.pimcore.org/license GPLv3 and PCL | ||
*/ | ||
|
||
namespace Pimcore\Controller\Attribute; | ||
|
||
use Pimcore\Controller\Configuration\ResponseHeader as BaseResponseHeader; | ||
|
||
/** | ||
* Allows to set HTTP headers on the response via attributes. The attribute will | ||
* be processed by ResponseHeaderListener which will set the HTTP headers on the | ||
* response. | ||
* | ||
* See ResponseHeaderBag for documentation on the fields. | ||
* | ||
*/ | ||
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_FUNCTION)] | ||
final class ResponseHeader extends BaseResponseHeader | ||
{ | ||
} | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Pimcore | ||
* | ||
* This source file is available under two different licenses: | ||
* - GNU General Public License version 3 (GPLv3) | ||
* - Pimcore Commercial License (PCL) | ||
* Full copyright and license information is available in | ||
* LICENSE.md which is distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) | ||
* @license http://www.pimcore.org/license GPLv3 and PCL | ||
*/ | ||
|
||
namespace Pimcore\Controller\Attribute; | ||
|
||
use Pimcore\Controller\Configuration\ResponseHeader as BaseResponseHeader; | ||
|
||
/** | ||
* Allows to set HTTP headers on the response via attributes. The attribute will | ||
* be processed by ResponseHeaderListener which will set the HTTP headers on the | ||
* response. | ||
* | ||
* See ResponseHeaderBag for documentation on the fields. | ||
* | ||
*/ | ||
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_FUNCTION)] | ||
final class ResponseHeader extends BaseResponseHeader | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* Pimcore | ||
* | ||
* This source file is available under two different licenses: | ||
* - GNU General Public License version 3 (GPLv3) | ||
* - Pimcore Commercial License (PCL) | ||
* Full copyright and license information is available in | ||
* LICENSE.md which is distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) | ||
* @license http://www.pimcore.org/license GPLv3 and PCL | ||
*/ | ||
|
||
namespace Pimcore\Request\Attribute; | ||
|
||
/** | ||
* Argument to resolve a DataObject. | ||
*/ | ||
#[\Attribute(\Attribute::TARGET_PARAMETER)] | ||
class DataObjectParam | ||
{ | ||
public function __construct( | ||
public ?string $class = null, | ||
public ?bool $unpublished = null, | ||
public ?array $options = null | ||
) { | ||
} | ||
} | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* Pimcore | ||
* | ||
* This source file is available under two different licenses: | ||
* - GNU General Public License version 3 (GPLv3) | ||
* - Pimcore Commercial License (PCL) | ||
* Full copyright and license information is available in | ||
* LICENSE.md which is distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) | ||
* @license http://www.pimcore.org/license GPLv3 and PCL | ||
*/ | ||
|
||
namespace Pimcore\Request\Attribute; | ||
|
||
/** | ||
* Argument to resolve a DataObject. | ||
*/ | ||
#[\Attribute(\Attribute::TARGET_PARAMETER)] | ||
class DataObjectParam | ||
{ | ||
public function __construct( | ||
public ?string $class = null, | ||
public ?bool $unpublished = null, | ||
public ?array $options = null | ||
) { | ||
} | ||
} |