當前位置: 首頁>>代碼示例>>PHP>>正文


PHP phutil_require_module函數代碼示例

本文整理匯總了PHP中phutil_require_module函數的典型用法代碼示例。如果您正苦於以下問題:PHP phutil_require_module函數的具體用法?PHP phutil_require_module怎麽用?PHP phutil_require_module使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了phutil_require_module函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: phutil_require_module

<?php

/**
 * This file is automatically generated. Lint this module to rebuild it.
 * @generated
 */
phutil_require_module('phabricator', 'applications/conduit/method/base');
phutil_require_source('ConduitAPI_chatlog_Method.php');
開發者ID:ramons03,項目名稱:phabricator,代碼行數:8,代碼來源:__init__.php

示例2: phutil_require_module

<?php

/*
 * Copyright 2011 Facebook, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
phutil_require_module('phutil', 'future');
phutil_require_source('FutureProxy.php');
開發者ID:rmoorman,項目名稱:libphutil,代碼行數:19,代碼來源:__init__.php

示例3: phutil_require_module

<?php

/**
 * This file is automatically generated. Lint this module to rebuild it.
 * @generated
 */
phutil_require_module('phabricator', 'applications/conduit/method/base');
phutil_require_module('phabricator', 'applications/phriction/constants/documentstatus');
phutil_require_module('phabricator', 'applications/phriction/storage/document');
phutil_require_module('phabricator', 'infrastructure/env');
phutil_require_source('ConduitAPI_phriction_Method.php');
開發者ID:netcomtec,項目名稱:phabricator,代碼行數:11,代碼來源:__init__.php

示例4: phutil_require_module

<?php

/**
 * This file is automatically generated. Lint this module to rebuild it.
 * @generated
 */
phutil_require_module('phabricator', 'storage/connection/mysql/base');
phutil_require_module('phabricator', 'storage/exception/connection');
phutil_require_source('AphrontMySQLDatabaseConnection.php');
開發者ID:ramons03,項目名稱:phabricator,代碼行數:9,代碼來源:__init__.php

示例5: phutil_require_module

<?php

/**
 * This file is automatically generated. Lint this module to rebuild it.
 * @generated
 */
phutil_require_module('phabricator', 'applications/chatlog/controller/base');
phutil_require_module('phabricator', 'applications/chatlog/storage/event');
phutil_require_module('phabricator', 'storage/queryfx');
phutil_require_module('phabricator', 'view/control/table');
phutil_require_module('phabricator', 'view/layout/panel');
phutil_require_module('phutil', 'markup');
phutil_require_source('PhabricatorChatLogChannelListController.php');
開發者ID:ramons03,項目名稱:phabricator,代碼行數:13,代碼來源:__init__.php

示例6: phutil_require_module

<?php

/**
 * This file is automatically generated. Lint this module to rebuild it.
 * @generated
 */
phutil_require_module('phabricator', 'applications/differential/constants/action');
phutil_require_module('phabricator', 'applications/feed/story/base');
phutil_require_module('phabricator', 'applications/feed/view/story');
phutil_require_source('PhabricatorFeedStoryDifferential.php');
開發者ID:ramons03,項目名稱:phabricator,代碼行數:10,代碼來源:__init__.php

示例7: phutil_require_module

<?php

/*
 * Copyright 2011 Facebook, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
phutil_require_module('phutil', 'utils');
phutil_require_module('phutil', 'parser/xhpast/constants');
phutil_require_module('phutil', 'parser/xhpast/api/list');
phutil_require_source('XHPASTNode.php');
開發者ID:rmoorman,項目名稱:libphutil,代碼行數:21,代碼來源:__init__.php

示例8: phutil_require_module

<?php

/**
 * This file is automatically generated. Lint this module to rebuild it.
 * @generated
 */
phutil_require_module('arcanist', 'unit/engine/phutil/testcase');
phutil_require_module('phutil', 'filesystem');
phutil_require_module('phutil', 'markup/engine/remarkup');
phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkupcode');
phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkupdefault');
phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkupheader');
phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkuplist');
phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkupnote');
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/bold');
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/escapehtml');
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/escaperemarkup');
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/hyperlink');
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/italics');
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/monospace');
phutil_require_source('PhutilRemarkupEngineTestCase.php');
開發者ID:rmoorman,項目名稱:libphutil,代碼行數:21,代碼來源:__init__.php

示例9: dirname

 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
$root = dirname(dirname(dirname(__FILE__)));
require_once $root . '/scripts/__init_script__.php';
require_once $root . '/scripts/__init_env__.php';
phutil_require_module('phutil', 'console');
phutil_require_module('phutil', 'future/exec');
if (empty($argv[1])) {
    echo "usage: test_connection.php <repository_callsign>\n";
    exit(1);
}
echo phutil_console_wrap(phutil_console_format('This script will test that you have configured valid credentials for ' . 'access to a repository, so the Phabricator daemons can pull from it. ' . 'You should run this as the **same user you will run the daemons as**, ' . 'from the **same machine they will run from**. Doing this will help ' . 'detect various problems with your configuration, such as SSH issues.'));
list($whoami) = execx('whoami');
$whoami = trim($whoami);
$ok = phutil_console_confirm("Do you want to continue as '{$whoami}'?");
if (!$ok) {
    die(1);
}
$callsign = $argv[1];
echo "Loading '{$callsign}' repository...\n";
$repository = id(new PhabricatorRepository())->loadOneWhere('callsign = %s', $argv[1]);
if (!$repository) {
開發者ID:hwang36,項目名稱:phabricator,代碼行數:31,代碼來源:test_connection.php

示例10: dirname

 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
$root = dirname(dirname(dirname(__FILE__)));
require_once $root . '/scripts/__init_script__.php';
require_once $root . '/scripts/__init_env__.php';
phutil_require_module('phutil', 'console');
phutil_require_module('phabricator', 'infrastructure/setup/sql');
define('SCHEMA_VERSION_TABLE_NAME', 'schema_version');
// TODO: getopt() is super terrible, move to something less terrible.
$options = getopt('fhv:u:p:') + array('v' => null, 'u' => null, 'p' => null);
foreach (array('h', 'f') as $key) {
    // By default, these keys are set to 'false' to indicate that the flag was
    // passed.
    if (array_key_exists($key, $options)) {
        $options[$key] = true;
    }
}
if (!empty($options['h']) || $options['v'] && !is_numeric($options['v'])) {
    usage();
}
if (empty($options['f'])) {
    echo phutil_console_wrap("Before running this script, you should take down the Phabricator web " . "interface and stop any running Phabricator daemons.");
開發者ID:nguyennamtien,項目名稱:phabricator,代碼行數:31,代碼來源:upgrade_schema.php


注:本文中的phutil_require_module函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。