We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ee0ae4 commit 2ae0341Copy full SHA for 2ae0341
src/Robots.php
@@ -16,14 +16,21 @@
16
17
final class Robots extends BaseComponent
18
{
19
+ private static $defaultConfig = [
20
+ 'all' => [
21
+ 'name' => '*',
22
+ 'disallow' => null,
23
+ ]
24
+ ];
25
+
26
/** @var array */
- private $robots;
27
+ private $config;
28
- public function __construct(array $robots)
29
+ public function __construct(array $config)
30
31
parent::__construct();
32
- $this->robots = $robots;
33
+ $this->config = \array_merge_recursive(self::$defaultConfig, $config);
34
}
35
36
protected function beforeRender() : void
0 commit comments