Skip to content

Commit fb5cb8b

Browse files
committed
readme: updated links to API
1 parent c4986f6 commit fb5cb8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ composer require nette/php-generator
4444
Classes
4545
-------
4646

47-
Let's start with a straightforward example of generating class using [ClassType](https://api.nette.org/3.0/Nette/PhpGenerator/ClassType.html):
47+
Let's start with a straightforward example of generating class using [ClassType](https://api.nette.org/php-generator/Nette/PhpGenerator/ClassType.html):
4848

4949
```php
5050
$class = new Nette\PhpGenerator\ClassType('Demo');
@@ -83,7 +83,7 @@ $printer = new Nette\PhpGenerator\Printer;
8383
echo $printer->printClass($class);
8484
```
8585

86-
We can add constants ([Constant](https://api.nette.org/3.0/Nette/PhpGenerator/Constant.html)) and properties ([Property](https://api.nette.org/3.0/Nette/PhpGenerator/Property.html)):
86+
We can add constants ([Constant](https://api.nette.org/php-generator/Nette/PhpGenerator/Constant.html)) and properties ([Property](https://api.nette.org/php-generator/Nette/PhpGenerator/Property.html)):
8787

8888
```php
8989
$class->addConstant('ID', 123)
@@ -358,7 +358,7 @@ $obj = new class ($val) {
358358
Global Function
359359
---------------
360360

361-
Code of functions will generate class [GlobalFunction](https://api.nette.org/3.0/Nette/PhpGenerator/GlobalFunction.html):
361+
Code of functions will generate class [GlobalFunction](https://api.nette.org/php-generator/Nette/PhpGenerator/GlobalFunction.html):
362362

363363
```php
364364
$function = new Nette\PhpGenerator\GlobalFunction('foo');
@@ -383,7 +383,7 @@ function foo($a, $b)
383383
Closure
384384
-------
385385

386-
Code of closures will generate class [Closure](https://api.nette.org/3.0/Nette/PhpGenerator/Closure.html):
386+
Code of closures will generate class [Closure](https://api.nette.org/php-generator/Nette/PhpGenerator/Closure.html):
387387

388388
```php
389389
$closure = new Nette\PhpGenerator\Closure;
@@ -557,7 +557,7 @@ function foo($a)
557557
Namespace
558558
---------
559559

560-
Classes, traits and interfaces (hereinafter classes) can be grouped into namespaces ([PhpNamespace](https://api.nette.org/3.0/Nette/PhpGenerator/PhpNamespace.html)):
560+
Classes, traits and interfaces (hereinafter classes) can be grouped into namespaces ([PhpNamespace](https://api.nette.org/php-generator/Nette/PhpGenerator/PhpNamespace.html)):
561561

562562
```php
563563
$namespace = new Nette\PhpGenerator\PhpNamespace('Foo');
@@ -641,7 +641,7 @@ echo $printer->printNamespace($namespace);
641641
PHP Files
642642
---------
643643

644-
Classes and namespaces can be grouped into PHP files represented by the class [PhpFile](https://api.nette.org/3.0/Nette/PhpGenerator/PhpFile.html):
644+
Classes and namespaces can be grouped into PHP files represented by the class [PhpFile](https://api.nette.org/php-generator/Nette/PhpGenerator/PhpFile.html):
645645

646646
```php
647647
$file = new Nette\PhpGenerator\PhpFile;

0 commit comments

Comments
 (0)