Changeset View
Changeset View
Standalone View
Standalone View
src/symbols/exception/PhutilMissingSymbolException.php
<?php | <?php | ||||
final class PhutilMissingSymbolException extends Exception { | final class PhutilMissingSymbolException extends Exception { | ||||
public function __construct($symbol, $type, $reason) { | public function __construct($symbol, $type, $reason) { | ||||
parent::__construct( | parent::__construct( | ||||
pht( | pht( | ||||
"Failed to load %s '%s': %s\n\n". | 'Failed to load %s "%s".'. | ||||
"If you are not a developer, this almost always means that a library ". | "\n\n". | ||||
"is out of date. For example, you may have upgraded `phabricator` ". | '%s'. | ||||
"without upgrading `libphutil`, or vice versa. It might also mean ". | "\n\n". | ||||
"that you need to restart Apache or PHP-FPM. Make sure all libraries ". | 'If you are not a developer, this almost always means that a library '. | ||||
"are up to date and all services have been restarted.\n\n". | 'is out of date. For example, you may have upgraded "phabricator/" '. | ||||
"If you are a developer and this symbol was recently added or moved, ". | 'without upgrading "libphutil/", or vice versa. It might also mean '. | ||||
"your library map may need to be rebuilt. You can rebuild the map by ". | 'that you need to restart Apache or PHP-FPM. Make sure all libraries '. | ||||
"running '%s'. For more information, see:\n\n". | 'are up to date and all services have been restarted.'. | ||||
"%s", | "\n\n". | ||||
'If you are a developer and this symbol was recently added or '. | |||||
'moved, your library map may need to be rebuilt. You can rebuild '. | |||||
'the map by running "arc liberate".'. | |||||
"\n\n". | |||||
'For more information, see: https://phurl.io/newclasses', | |||||
$type, | $type, | ||||
$symbol, | $symbol, | ||||
$reason, | $reason)); | ||||
'arc liberate', | |||||
'https://secure.phabricator.com/book/phabcontrib/article/'. | |||||
'adding_new_classes/')); | |||||
} | } | ||||
} | } |