Skip to content

Commit d312b1a

Browse files
committed
added #[TemplateVariable]
1 parent 0d0ff21 commit d312b1a

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the Nette Framework (https://nette.org)
5+
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6+
*/
7+
8+
declare(strict_types=1);
9+
10+
namespace Nette\Application\Attributes;
11+
12+
use Attribute;
13+
14+
15+
/**
16+
* Marks property to be automatically passed as variable to template.
17+
*/
18+
#[Attribute(Attribute::TARGET_PROPERTY)]
19+
final class TemplateVariable
20+
{
21+
}

0 commit comments

Comments
 (0)