当前位置: 首页>>代码示例>>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;未经允许,请勿转载。