| Línea 236... |
Línea 236... |
| 236 |
* @param bool $writeToFile If true, write the proxies to disk to improve performances
|
236 |
* @param bool $writeToFile If true, write the proxies to disk to improve performances
|
| 237 |
* @param string|null $proxyDirectory Directory where to write the proxies
|
237 |
* @param string|null $proxyDirectory Directory where to write the proxies
|
| 238 |
* @return $this
|
238 |
* @return $this
|
| 239 |
* @throws InvalidArgumentException when writeToFile is set to true and the proxy directory is null
|
239 |
* @throws InvalidArgumentException when writeToFile is set to true and the proxy directory is null
|
| 240 |
*/
|
240 |
*/
|
| 241 |
public function writeProxiesToFile(bool $writeToFile, string $proxyDirectory = null) : self
|
241 |
public function writeProxiesToFile(bool $writeToFile, ?string $proxyDirectory = null) : self
|
| 242 |
{
|
242 |
{
|
| 243 |
$this->ensureNotLocked();
|
243 |
$this->ensureNotLocked();
|
| Línea 244... |
Línea 244... |
| 244 |
|
244 |
|
| 245 |
if ($writeToFile && $proxyDirectory === null) {
|
245 |
if ($writeToFile && $proxyDirectory === null) {
|